/* =========================================================
   ClutchTask — HOMEPAGE
   Responsive layout, animated background and footer
   ========================================================= */

/* =========================================================
   1. GLOBAL RESET
   ========================================================= */

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

html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--description-text);
    background: var(--description-bg);

    overflow: hidden;
}

img {
    max-width: 100%;
}


/* =========================================================
   2. PAGE LAYOUT — DESKTOP
   ========================================================= */

.page-container {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    min-height: 0;

    overflow: hidden;
}

.page-container > header {
    position: relative;

    z-index: 6000;
    flex: 0 0 auto;
}

.page-container > main {
    position: relative;

    flex: 1 1 auto;

    width: 100%;
    min-height: 0;

    overflow: hidden;
}


/* =========================================================
   3. FULLPAGE SCROLLER
   ========================================================= */

.fullpage-container {
    position: relative;
    isolation: isolate;

    width: 100%;
    height: 100%;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-y: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;

    background: transparent;
}

.fullpage-container::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   4. GLOBAL BACKGROUND
   ========================================================= */

.fullpage-container::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            var(--bg-color-1, var(--description-bg)) 0%,
            var(--bg-color-2, var(--description-bg-secondary)) 48%,
            var(--bg-color-3, var(--description-bg-tertiary)) 100%
        );

    background-size: 180% 180%;
    background-position: 50% 50%;

    transform: translateZ(0);
}

.fullpage-container::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(125, 211, 252, 0.20),
            transparent 42%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(167, 139, 250, 0.12),
            transparent 45%
        );
}


/* =========================================================
   5. BACKGROUND LAYERS
   ========================================================= */

.global-background {
    position: fixed;
    inset: 0;

    z-index: 0;

    overflow: hidden;
    pointer-events: none;

    transform: translateZ(0);
    backface-visibility: hidden;
}

.background-layer {
    position: absolute;
    inset: 0;

    opacity: 0;

    pointer-events: none;

    background-size: 180% 180%;

    transform: translateZ(0);
    backface-visibility: hidden;

    animation:
        backgroundDrift 24s ease-in-out infinite alternate;

    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);

    will-change: opacity, background-position;
}

@keyframes backgroundDrift {

    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}


/* Palette 1 */

.background-layer-1 {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.48),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--description-palette-blue) 0%,
            var(--description-palette-purple) 52%,
            var(--description-palette-teal) 100%
        );
}


/* Palette 2 */

.background-layer-2 {
    animation-delay: -8s;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(255, 255, 255, 0.42),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--description-palette-pink) 0%,
            var(--palette-indigo-100) 52%,
            var(--description-palette-rose) 100%
        );
}


/* Palette 3 */

.background-layer-3 {
    animation-delay: -16s;

    background:
        radial-gradient(
            circle at 22% 75%,
            rgba(255, 255, 255, 0.45),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--palette-emerald-100) 0%,
            var(--description-palette-blue) 52%,
            var(--warning-bg) 100%
        );
}


/* =========================================================
   6. AMBIENT GLOW
   ========================================================= */

.ambient-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.38);

    filter: blur(55px);

    z-index: 1;
    pointer-events: none;

    animation:
        floatGlow 12s ease-in-out infinite alternate;

    will-change: transform;
}

@keyframes floatGlow {

    from {
        transform: translate3d(-25px, -20px, 0);
    }

    to {
        transform: translate3d(25px, 20px, 0);
    }
}


/* =========================================================
   7. PAGE SECTIONS — DESKTOP
   ========================================================= */

.fullpage-container > .page-section {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: start;
    justify-content: center;

    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 100%;
    max-height: none;

    padding: clamp(24px, 3vw, 48px);

    overflow: visible;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: transparent !important;

    z-index: 1;
}


/* =========================================================
   8. SPOTLIGHT — MAIN CONTENT
   ========================================================= */

.spotlight-container {
    position: relative;
    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0, 3fr)
        minmax(0, 2fr);

    align-items: start;
    justify-items: stretch;

    gap: clamp(8px, 1.2vw, 18px);

    width: 100%;
    max-width: var(--description-container);
    min-width: 0;

    margin: auto;
    padding: 0 var(--space-lg);

    height: auto;
    max-height: none;
}


/* =========================================================
   9. SPOTLIGHT — TEXT
   ========================================================= */

.spotlight-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    width: 100%;

    min-width: 0;

    gap: 0;

    margin: 0;
    padding: 0;
}

.spotlight-image-left .spotlight-content {
    grid-column: 2;
    grid-row: 1;
}

.spotlight-image-left .spotlight-container {
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 3fr);
}

.spotlight-image-left .spotlight-visual {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
}

.spotlight-image-right .spotlight-content {
    grid-column: 1;
    grid-row: 1;
}

.spotlight-image-right .spotlight-visual {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
}


/* Section label */

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 clamp(18px, 2.5vh, 26px);
    padding: 7px 12px 7px 10px;

    color: var(--text-home-eyebrow);

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.045em;
    text-transform: uppercase;

    overflow-wrap: anywhere;

    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
}

.spotlight-tag::before {
    content: "";
    flex: 0 0 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}


/* Main heading */

.spotlight-content h1 {
    width: 100%;

    margin: 0 0 1rem;
    padding: 0;

    color: var(--description-text);

    font-size: var(--font-3xl);
    font-weight: 760;

    line-height: 1.10;
    letter-spacing: -0.045em;

    overflow-wrap: anywhere;
}


/* Description */

.spotlight-content p {
    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--description-muted);

    font-weight: 400;
    text-align: left;

    line-height: 1.85;
    letter-spacing: 0.005em;

    overflow-wrap: anywhere;
}


/* Inline emphasis */

.spotlight-content p strong,
.spotlight-content p b {
    color: var(--description-text);
    font-weight: 650;
}


/* Links */

.spotlight-content p a {
    color: var(--description-accent);

    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;

    transition:
        text-decoration-color 180ms ease;
}

.spotlight-content p a:hover {
    text-decoration-color: currentColor;
}


/* Lists */

.spotlight-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.spotlight-list li {
    position: relative;

    padding-left: 25px;

    color: var(--description-muted);

    font-size: 15px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.spotlight-list li::before {
    content: "✦";

    position: absolute;
    left: 0;
    top: 0.05em;

    color: var(--description-accent);
    font-size: 14px;
}

@media (max-width: 760px) {
    .global-background,
    .fullpage-container::after {
        display: none;
    }

    .fullpage-container {
        scroll-snap-type: y proximity;
    }

    .waves-background,
    .ambient-glow {
        display: none;
    }

}


/* =========================================================
   10. SPOTLIGHT — IMAGE
   ========================================================= */

.spotlight-visual {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
}


/*
 * Brak sztucznego aspect-ratio.
 *
 * Obraz zachowuje swoje rzeczywiste proporcje.
 */

.floating-image-wrapper {
    position: relative;

    display: block;

    width: fit-content;
    max-width: 100%;
    min-width: 0;

    height: auto;
    max-height: 68dvh;

    margin: 0;
    padding: 0;

    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;

    transition:
        transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 350ms ease;
}


/* Image */

.floating-image-wrapper .description-img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 68dvh;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left top;

    border: 0;
    border-radius: 12px;
}


/* =========================================================
   11. WAVES
   ========================================================= */

.waves-background {
    position: absolute;
    inset: 0;

    z-index: 2;

    overflow: hidden;
    pointer-events: none;

    contain: strict;

    opacity: 0.34;
}

.waves-svg {
    position: absolute;

    width: 125%;
    height: 105%;

    left: -12.5%;
    top: -2.5%;

    overflow: visible;

    transform:
        perspective(1000px)
        rotateX(52deg)
        rotateZ(-2deg)
        scale(1.08);

    transform-origin: center center;
}

.wave-ribbon {
    transform-box: fill-box;
    transform-origin: center;
}

.wave-ribbon-1 {
    opacity: 0.68;

    animation:
        waveFlowMain 16s ease-in-out infinite;
}

.wave-ribbon-2 {
    opacity: 0.34;

    animation:
        waveFlowMiddle 21s ease-in-out infinite;
}

.wave-ribbon-3 {
    opacity: 0.18;

    animation:
        waveFlowBack 27s ease-in-out infinite;
}


@keyframes waveFlowMain {

    0%,
    100% {
        transform:
            translate3d(-2%, 0, 0)
            scaleY(1);
    }

    50% {
        transform:
            translate3d(2.5%, -1.5%, 0)
            scaleY(1.035);
    }
}


@keyframes waveFlowMiddle {

    0%,
    100% {
        transform:
            translate3d(2%, 1%, 0)
            scaleY(1.01);
    }

    50% {
        transform:
            translate3d(-2.5%, -1%, 0)
            scaleY(0.975);
    }
}


@keyframes waveFlowBack {

    0%,
    100% {
        transform:
            translate3d(-1%, 1%, 0)
            scaleY(1);
    }

    50% {
        transform:
            translate3d(2%, -1%, 0)
            scaleY(1.025);
    }
}


/* Only animate waves in the active section */

.page-section:not(.wave-active) .wave-ribbon {
    animation-play-state: paused;
}

.page-section.wave-active .wave-ribbon {
    animation-play-state: running;
}


/* =========================================================
   12. FOOTER — DESKTOP
   ========================================================= */

body:has(.fullpage-container)
.page-container > .footer {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    box-sizing: border-box;
    height: 58px;
    min-height: 58px;
    max-height: 58px;

    z-index: 5000;

    overflow: visible;

    background-color: var(--bg-card);
    color: var(--text-main);

    padding:
        var(--space-xs)
        var(--space-xl);

    padding-bottom: var(--space-xl);

    font-family: Arial, sans-serif;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
}

body:has(.fullpage-container)
.page-container > .footer.footer-expanded {
    height: var(--footer-expanded-height, auto);
    min-height: 0;
    max-height: none;
    overflow: visible;
}

body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
}

body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-content {
    display: grid;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-bottom: var(--space-xl);
    overflow: hidden;
}

body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-section {
    display: flex;
    align-items: center;
    width: 100%;
    height: 58px;
    min-height: 58px;
    margin: 0;
    padding: 0;
}

body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-section.about p,
body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-section.links li,
body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-section.contact p,
body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .footer-section.contact .social-links,
body:has(.fullpage-container)
.page-container > .footer:not(.footer-expanded) .rights-content {
    display: none;
}

body:has(.fullpage-container)
.page-container > .footer .footer-toggle {
    position: absolute;
    top: -38px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 12px 12px 0 0;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 6001;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

body:has(.fullpage-container)
.page-container > .footer .footer-toggle:hover {
    transform: translateY(-2px);
}

body:has(.fullpage-container)
.page-container > .footer.footer-expanded .footer-toggle i {
    transform: rotate(180deg);
}

body:has(.fullpage-container)
.page-container > .footer .footer-toggle i {
    font-size: 1rem;
    line-height: 1;
}


/* =========================================================
   15. LAST SECTION — FOOTER SPACE
   ========================================================= */

body:has(.fullpage-container)
.fullpage-container .page-section:last-child {
    padding-bottom:
        var(--description-footer-space, 58px);

    box-sizing: border-box;
}

.description-footer-scroll-space {
    height: var(--description-footer-scroll-space, 420px);
    box-sizing: border-box;
    scroll-snap-align: end;
    scroll-snap-stop: always;
}


/* =========================================================
   16. TABLET — UP TO 900px
   ========================================================= */

@media (max-width: 900px) {

    html,
    body {
        width: 100%;
        height: auto !important;

        min-height: 100%;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior-y: auto;
    }


    /* -----------------------------------------------------
       PAGE
       ----------------------------------------------------- */

    .page-container {
        display: flex;
        flex-direction: column;

        width: 100%;

        height: auto !important;
        min-height: 100dvh;

        overflow: visible !important;
    }


    .page-container > header {
        flex: 0 0 auto;
    }


    .page-container > main {
        flex: 0 0 auto;

        width: 100%;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;
    }


    /* -----------------------------------------------------
       FULLPAGE
       ----------------------------------------------------- */

    .fullpage-container {
        width: 100%;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;

        scroll-snap-type: none !important;
        scroll-behavior: auto;

        overscroll-behavior-y: auto;
    }

    .description-footer-scroll-space {
        display: none;
    }


    /* -----------------------------------------------------
       SECTIONS
       ----------------------------------------------------- */

    .fullpage-container > .page-section {

        /*
         * Na mobile sekcja nie musi mieć pełnego 100dvh.
         *
         * Dzięki temu po zakończeniu jednej sekcji
         * kolejna zaczyna się znacznie bliżej.
         */
        display: flex;

        align-items: flex-start;
        justify-content: center;

        width: 100%;

        height: auto !important;

        min-        height: auto !important;
        max-height: none !important;
    }

    .footer .footer-toggle {
        display: none !important;

        padding:
            12px 0 18px;

        overflow: visible !important;

        scroll-snap-align: none !important;
        scroll-snap-stop: normal;
    }


    /*
     * Pierwsza sekcja dostaje trochę większy górny odstęp,
     * żeby treść nie była przyklejona do nagłówka.
     */

    .fullpage-container > .page-section:first-child {
        padding-top: 28px;
    }


    /*
     * Ostatnia sekcja — trochę większy dół przed footerem.
     */

    body:has(.fullpage-container)
    .fullpage-container .page-section:last-child {
        padding-bottom: 32px !important;
    }


    /* -----------------------------------------------------
       SPOTLIGHT
       Obraz → content
       ----------------------------------------------------- */

    .spotlight-container {
        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        width: 100%;
        max-width: 760px;

        gap: 20px;

        margin: 0 auto;

        padding:
            20px
            28px
            24px;
    }

    .spotlight-content {
        order: 2;
        padding: 0;
        justify-content: flex-start;
    }

    .spotlight-visual {
        order: 1;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .spotlight-image-left .spotlight-content,
    .spotlight-image-left .spotlight-visual,
    .spotlight-image-right .spotlight-content,
    .spotlight-image-right .spotlight-visual {
        grid-column: auto;
        grid-row: auto;
    }


    /* -----------------------------------------------------
       IMAGE — FIRST
       ----------------------------------------------------- */

    .spotlight-visual {
        order: 1;

        width: 100%;
        min-width: 0;

        display: flex;

        align-items: flex-start;
        justify-content: flex-start;

        margin: 0;
        padding: 0;
    }


    .floating-image-wrapper {
        width: fit-content;
        max-width: 100%;

        height: auto;
        max-height: none;

        margin: 0;
        padding: 0;

        overflow: hidden;

        border-radius: 12px;
    }


    .floating-image-wrapper .description-img {
        display: block;

        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 68dvh;

        object-fit: contain;
        object-position: left top;

        border-radius: 12px;
    }


    /* -----------------------------------------------------
       CONTENT — SECOND
       ----------------------------------------------------- */

    .spotlight-content {
        order: 2;

        width: 100%;
        max-width: 680px;

        margin: 0;
        padding: 0;
    }


    .spotlight-tag {
        margin-bottom: 14px;
    }


    .spotlight-content h1 {
        max-width: 16ch;

        margin:
            0 0 14px;

        font-size:
            clamp(32px, 6vw, 48px);

        line-height: 1.10;
    }


    .spotlight-content p {
        max-width: 65ch;

        margin: 0;

        font-size: 16px;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       FOOTER — NORMAL DOCUMENT FLOW
       ----------------------------------------------------- */

    body:has(.fullpage-container) .page-container > .footer {

        position: static !important;

        inset: auto !important;

        display: block !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        flex: 0 0 auto !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        transform: none !important;

        transition: none !important;

        border-radius: 0;

        visibility: visible !important;
        pointer-events: auto !important;
    }


    /* -----------------------------------------------------
       FOOTER CONTENT
       ----------------------------------------------------- */

    .footer .footer-content {

        display: grid !important;

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(min(100%, 230px), 1fr)
            );

        gap: 28px;

        width: 100%;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 auto;

        padding:
            36px
            28px
            24px !important;

        overflow: visible !important;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       FOOTER SECTIONS
       ----------------------------------------------------- */

    .footer .footer-section {

        display: block !important;

        width: 100%;

        height: auto !important;

        min-height: 0 !important;
        max-height: none !important;

        margin: 0;
        padding: 0;

        overflow: visible !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
    }


    .footer .footer-section.about p,
    .footer .footer-section.links li,
    .footer .footer-section.contact p,
    .footer .footer-section.contact .social-links,
    .footer .rights-content {

        display: block !important;

        opacity: 1 !important;
        visibility: visible !important;
    }


    .footer .footer-section h1 {
        margin-top: 0;
    }


    .footer .rights-content {

        width: 100%;

        height: auto !important;
        min-height: 0 !important;

        padding:
            0
            28px
            20px;

        overflow: visible !important;
    }


    /* Background remains fixed */

    .global-background {
        position: fixed;
    }
}


/* =========================================================
   17. MOBILE — UP TO 600px
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       SECTIONS
       ----------------------------------------------------- */

    .fullpage-container > .page-section {

        /*
         * Jeszcze mniejsza przerwa między sekcjami.
         */

        min-height: auto !important;

        padding:
            8px 0 12px;
    }


    .fullpage-container > .page-section:first-child {
        padding-top: 20px;
    }


    .fullpage-container > .page-section:last-child {
        padding-bottom: 26px !important;
    }


    /* -----------------------------------------------------
       SPOTLIGHT
       ----------------------------------------------------- */

    .spotlight-container {

        gap: 16px;

        width: 100%;
        max-width: 480px;

        margin: 0 auto;

        padding:
            14px
            18px
            18px;
    }


    /* -----------------------------------------------------
       IMAGE
       ----------------------------------------------------- */

    .spotlight-visual {
        width: 100%;
        min-width: 0;

        justify-content: flex-start;
    }


    .floating-image-wrapper {

        width: fit-content;
        max-width: 100%;

        max-height: 68dvh;

        border-radius: 12px;
        box-shadow: none;
    }


    .floating-image-wrapper .description-img {

        display: block;

        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 68dvh;

        border-radius: inherit;
    }


    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .spotlight-content {

        width: 100%;
        max-width: none;
    }


    .spotlight-tag {

        gap: 7px;

        margin-bottom: 12px;

        padding:
            6px
            9px;

        font-size: 10px;

        letter-spacing: 0.10em;
        line-height: 1.5;
    }


    .spotlight-content h1 {

        max-width: 100%;

        margin-bottom: 12px;

        font-size:
            clamp(28px, 8vw, 38px);

        line-height: 1.10;

        letter-spacing: -0.035em;
    }


    .spotlight-content p {

        max-width: 100%;

        font-size: 15px;

        line-height: 1.65;
    }


    /* Lists */

    .spotlight-list {

        gap: 9px;

        margin-top: 14px;
    }


    .spotlight-list li {

        font-size: 14px;

        line-height: 1.65;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer .footer-content {

        grid-template-columns:
            minmax(0, 1fr);

        gap: 24px;

        padding:
            30px
            20px
            20px !important;
    }


    .footer .rights-content {

        padding:
            0
            20px
            20px;
    }
}


/* =========================================================
   18. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .fullpage-container > .page-section {

        padding:
            6px 0 10px;
    }


    .fullpage-container > .page-section:first-child {
        padding-top: 16px;
    }


    .spotlight-container {

        gap: 14px;

        padding-inline: 15px;
    }


    .spotlight-content h1 {

        font-size: 27px;
    }


    .spotlight-content p {

        font-size: 14px;

        line-height: 1.65;
    }
}


/* =========================================================
   19. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .fullpage-container {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }


    .background-layer,
    .ambient-glow,
    .wave-ribbon {

        animation: none !important;
    }


    .floating-image-wrapper,
    .spotlight-content p a,
    .footer {

        transition: none !important;
    }


    .page-container > .footer {

        transition: none !important;
    }
}


/* =========================================================
   20. REDUCED DATA
   ========================================================= */

@media (prefers-reduced-data: reduce) {

    .waves-background {
        opacity: 0.25;
    }


    .wave-ribbon-2,
    .wave-ribbon-3 {

        display: none;
    }


    .wave-ribbon-1 {

        animation-duration: 25s;
    }
}


/* Task-list layout, task cards, status controls, badges, and task details. */
.task-list-header,
.tasks-container {
    max-width: var(--container-max-width);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.task-list-header {
    display: grid;
    grid-template-columns: 1fr auto;
}

.task-list-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: var(--space-xs);
}

.task-list-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: var(--space-xs);
}

.tasks-container {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    width: 100%;
}

.section-header {
    margin: var(--space-md) 0;
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.section-header h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.task-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.list-group-item {
    background: var(--bg-card);
    border-top: var(--border-sm) solid var(--success);
    border-left: var(--border-md) solid var(--success);
    border-right: var(--border-sm) solid var(--success);
    border-bottom: var(--border-sm) solid var(--success);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xs);

    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    max-width: 93%;
    margin-left: auto;
    margin-right: auto;
}

.list-group-item:hover {
    box-shadow: var(--shadow-md);
}

.next-task {
    display: flex !important;
    flex-direction: column;
    opacity: 0.4 !important;
    max-width: 90% !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.next-task:hover {
    opacity: 1 !important;
    box-shadow: var(--shadow-md) !important;
}



.list-group-item.priority-medium {
    border-color: var(--warning) !important;

}
.list-group-item.priority-high {
    border-color: var(--danger) !important;
}

.late {
    background-color: var(--deadline-overdue-bar) !important;
}

.list-group-item.task-featured {
    /* border-top: var(--border-lg) groove var(--border-main-task) !important;
    border-left: var(--border-lg) groove var(--border-main-task) !important;
    border-right: var(--border-lg) ridge var(--border-main-task) !important;
    border-bottom: var(--border-lg) ridge var(--border-main-task) !important; */
    /* border-top-style: groove !important;
    border-left-style: groove !important;
    border-right-style: ridge !important;
    border-bottom-style: ridge !important; */
    border-left-width: var(--border-lg) !important;
    border-right-width: var(--border-sm) !important;
    border-top-width: var(--border-sm) !important;
    border-bottom-width: var(--border-sm) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.63);
    transform: translateY(-0.125rem);
    margin-bottom: var(--space-2xl);
    min-width: 100%;
    max-width: 100%;
    transform: translateY(-4px);
    opacity: 1 !important;
    z-index: 10;
}

.deadline-near { background-color: var(--warning-bg); }
.deadline-near .task-header-bar { background-color: var(--deadline-near); }

.deadline-urgent { background-color: var(--deadline-urgent); }
.deadline-urgent .task-header-bar { background-color: var(--warning); }

.deadline-today { background-color: var(--danger-bg) !important; }
.deadline-today .task-header-bar { background-color: var(--deadline-today); }

.deadline-overdue {
    background-color: var(--deadline-overdue-bg);
}
.deadline-overdue .task-header-bar { background-color: var(--deadline-overdue-bar); }

.task-header-bar {
    background-color: var(--bg-card);
    padding: var(--space-xs) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Lewa kolumna, środek dopasowany do treści, prawa kolumna */
    align-items: center;
    border-bottom: var(--border-xs) solid var(--border-light);
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.header-left, .header-right, .header-center {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.task-title {
    font-weight: 600;
    color: var(--text-main);
}
.header-right {
    justify-content: flex-end;
}
.header-center {
    font-weight: 600;
    gap: var(--space-lg) !important;
}



/* Badges */
.badge {
    font-size: var(--font-xs);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: var(--space-4xs);
    border: var(--border-xs) solid var(--text-muted);
}
.task-project { background: var(--info-bg); color: var(--info); }
.task-category { background: var(--success-bg); color: var(--success); }
.task-end-date { background: var(--bg-secondary); color: var(--text-subtle); }
.task-priority { background: var(--success); color: var(--text-inverse); }
.task-priority.priority-medium { background: var(--warning); color: var(--warning-text); }
.task-priority.priority-high { background: var(--danger); color: var(--text-inverse); }
.task-own-end { background: var(--end-date-bg); color: var(--text-subtle); }

.orders-badge {
    display: flex;
    background: var(--bg-secondary);
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    gap: var(--space-md) !important;
}

.task-orders-badge {
    font-weight: 700;

}

.handle {
    cursor: grab;
    color: var(--text-main);
}

.task-view {
    padding: var(--space-xs) var(--space-xl);
    border-bottom: var(--border-xs) solid var(--border-light);
}

.task-description-text {
    color: var(--text-dark);
    font-size: var(--font-lg);
    margin-top: 0;
    margin-bottom: var(--space-xs);
    padding: var(--space-xs) var(--space-xl);
    background-color: var(--bg-subtle);
    border: var(--border-xs) solid var(--border-light);
    border-radius: var(--radius-md);
    white-space: pre;
}

.task-columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.subtask-view, .task-comments {
    background: var(--bg-subtle);
    border: var(--border-xs) solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-xl);
}

.subtask-header,
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-xl);
    color: var(--text-main);
    border-bottom: var(--border-xs) solid var(--border-light);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.subtasks-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: var(--subtasks-max-height);
    overflow-y: auto;
}



.subtask-item-view {
    padding: var(--space-xs);
    background: var(--bg-card);
    border: var(--border-xs) solid var(--border-light);
    border-left: var(--border-md) solid var(--primary);
    border-radius: var(--radius-sm);
    align-items: center;
}

.subtask-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--space-xl);
}

.subtask-content-side {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    flex-grow: 1;
}

.subtask-text-block {
    line-height: 1.15;
}

.subtask-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.subtask-title {
    font-weight: 500;
    font-size: var(--font-md);
    color: var(--text-main);
}

.subtask-done-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.subtask-date {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.subtask-description-block {
    margin-top: var(--space-2xs);
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.subtask-actions-side {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.subtask-actions-side button {
    background: none;
    border: none;
    padding: var(--space-xs);
    font-size: var(--font-lg);
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: background-color 0.2s, color 0.2s;
}

.delete-subtask-btn {
    color: var(--danger);
}
.delete-subtask-btn:hover {
    background-color: var(--danger-border);
    color: var(--danger-hover);
}

/* --- Checkbox --- */
.custom-subtask-checkbox {
    position: relative;
    width: var(--checkbox-width);
    height: var(--checkbox-height);
    margin-top: var(--space-2xs);
    flex-shrink: 0;
}

.custom-subtask-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.custom-subtask-checkbox label {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--checkbox-box-size);
    height: var(--checkbox-box-size);
    background-color: var(--bg-card);
    border: var(--border-sm) solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.custom-subtask-checkbox:hover input ~ label {
    border-color: var(--info);
}

.custom-subtask-checkbox input:checked ~ label {
    background-color: var(--info);
    border-color: var(--info);
}

.custom-subtask-checkbox label:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.3125rem;
    top: var(--space-2xs);
    width: 0.125rem;
    height: 0.4375rem;
    border: solid var(--text-inverse);
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
}

.custom-subtask-checkbox input:checked ~ label:after {
    display: block;
}

.add-subtask-form-container,
.edit-subtask {
    background-color: var(--bg-card);
    border: var(--border-xs) solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-top: var(--space-xs);
}

.add-subtask-form,
.edit-subtask-form,
.add-comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-family: inherit;
    font-size: var(--font-lg);
    color: var(--text-dark);
}

.add-subtask-form input[type="text"],
.add-subtask-form textarea,
.edit-subtask-form input[type="text"],
.edit-subtask-form textarea,
.add-comment-form textarea {
    width: 100%;
    padding: var(--space-xs) var(--space-lg);
    font-family: inherit;
    font-size: var(--font-sm);
    color: var(--text-dark);
    background-color: var(--bg-card);
    border: var(--border-xs) solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.add-subtask-form textarea,
.edit-subtask-form textarea {
    box-sizing: border-box;
    height: var(--textarea-default);
    min-height: var(--textarea-min-height);
    max-height: var(--textarea-max-height);
    resize: none;
    overflow-y: hidden;
}

.add-comment-form textarea {
    box-sizing: border-box;
    height: 2rem;
    min-height: var(--textarea-min-height);
    max-height: var(--textarea-max-height);
    resize: none;
    overflow-y: hidden;
}

.add-subtask-form textarea:focus,
.edit-subtask-form textarea:focus,
.add-comment-form textarea:focus {
    overflow-y: auto;
}

.add-subtask-form input[type="text"]:hover,
.add-subtask-form textarea:hover,
.edit-subtask-form input[type="text"]:hover,
.edit-subtask-form textarea:hover,
.add-comment-form textarea:hover {
    border-color: var(--text-muted);
}

.add-subtask-form input[type="text"]:focus,
.add-subtask-form textarea:focus,
.edit-subtask-form input[type="text"]:focus,
.edit-subtask-form textarea:focus,
.add-comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1875rem var(--focus-ring);
}

.add-subtask-form input::placeholder,
.add-subtask-form textarea::placeholder,
.edit-subtask-form input::placeholder,
.edit-subtask-form textarea::placeholder,
.add-comment-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.add-subtask-form .form-buttons,
.edit-subtask-form .form-buttons {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
}

.comments-list {
    max-height: var(--comments-max-height);
    overflow-y: auto;
}

.task-comments {
    font-family: inherit;
    color: var(--text-dark);
    position: relative;
}

.task-comments ul {
    padding: 0;
    margin: var(--space-2xs) 0;
    list-style: none;
}

.task-comments li {
    font-size: var(--font-sm);
    padding: var(--space-2xs) 0;
    border-bottom: var(--border-xs) solid var(--bg-secondary);
    color: var(--text-dark);
}

.add-comment-form {
    position: sticky;
    bottom: 0;
    align-items: flex-end;
    gap: var(--space-xl);
    margin-top: var(--space-xs);
    z-index: 10;
}

.add-comment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-2xl);
    background-color: var(--info);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-comment-btn:hover {
    background-color: var(--info-hover);
}

.task-actions-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xs) var(--space-xl);
    border-top: var(--border-xs) solid var(--border-light);
    font-size: var(--font-xs);
    color: var(--text-subtle);
}

.footer-info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--bg-secondary);
    border: var(--border-xs) solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 0 0 var(--space-lg);
}

.task-id-container,
.task-creator,
.task-assignee-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    color: var(--text-subtle);
}



.task-assignee-container {
    display: grid;
    align-items: center;
    border: var(--border-xs) solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}
.task-assignee-container:hover {
    padding: 0;
}

.task-assignee-container button {
    background-color: var(--bg-card) !important;
    border: border: var(--border-xs) solid var(--border-color); !important;
    border-radius: var(--radius-xs) !important;
    font-size: var(--font-sm) !important;
    color: var(--text-dark) !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.task-assignee-container button:hover {
  background-color: var(--primary-light) !important;
}

.assigned-text {
    display: flex;
    margin-left: var(--space-xl);
    margin-right: var(--space-xl);
    justify-content: center;
    align-content: center;
    letter-spacing: var(--space-3xs);
}

.task-assignee-container .assigned-visibility,
.task-assignee-container .assigned-btns {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
}
.task-assignee-container .assigned-visibility {
    opacity: 1;
    visibility: visible;
}

.task-assignee-container .assigned-btns {
    opacity: 0;
    visibility: hidden;
    display: flex;
}

.task-assignee-container:hover .assigned-visibility {
    opacity: 0;
    visibility: hidden;
}

.task-assignee-container:hover .assigned-btns {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.task-assignee-container .assigned-btns .edit-assign-btn {
    flex: 1;
    min-width: 0;
}
.task-assignee-container .assigned-btns .assign-me-task-btn {
    flex: 0 0 auto;
}





.footer-actions-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
}

.footer-actions-group button {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-xs);
    border: var(--border-xs) solid var(--border-color);
    background-color: var(--bg-card);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.footer-actions-group button:hover {
    background-color: var(--bg-hover);
}

.task-actions-footer .item-hide, .item-hide {
    display: none !important;
}

.task-actions-footer .do-now-btn:not(.task-featured) {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--warning-text);
    font-weight: 600;
}

.task-actions-footer .do-now-btn:hover {
    background-color: var(--warning-hover);
}

.task-actions-footer .delete-task-btn {
    color: var(--danger);
    border-color: var(--danger-border);
}

.task-actions-footer .delete-task-btn:hover {
    background-color: var(--danger-bg);
}

@media (max-width: 56.25rem) {
    .task-columns-container {
        grid-template-columns: 1fr;
    }
}


.roles-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-lg);
}

.roles-label {
    font-weight: 500;
    color: var(--text-subtle);
}



.role-title {
    font-size: var(--font-lg);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
    border-bottom: var(--border-xs) solid var(--border-light);
    padding-bottom: var(--space-2xs);
}

h1.table {
    display: inline-block;
}

.add-taskwindow-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary) !important;
    background-color: var(--primary-light);
    border: var(--border-xs) solid var(--border-color);
    gap: var(--space-md);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-2xl);
    font-size: var(--font-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.new-subtasks-btn:hover .btn-icon,
.add-taskwindow-btn:hover .add-rotate {
    transform: rotate(90deg);
}

.task-list-header-left h1 {
    font-size: var(--font-xl);
    margin: 0;
}

#sortable-list > .list-group-item:not(.task-featured) {
    opacity: 0.48;

    filter: saturate(0.72);

    transition:
        opacity 180ms ease,
        filter 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

#sortable-list > .list-group-item:hover,
#sortable-list > .list-group-item:has(:focus:not(.toggle-btn)),
#sortable-list > .list-group-item:has(.bi-play-circle) {
    opacity: 1;
    filter: saturate(1);
}

@media (max-width: 48rem) {
    .list-group-item {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .list-group-item.task-featured {
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }

    .task-header-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title counts"
            "badges badges";
        align-items: center;
        gap: 0.25rem 0.45rem;
        padding: 0.38rem 0.5rem;
    }

    .header-left {
        grid-area: title;
        min-width: 0;
        gap: 0.35rem;
    }

    .task-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .header-center {
        grid-area: counts;
        justify-self: end;
        align-self: start;
        gap: 0.3rem !important;
    }

    .header-right {
        grid-area: badges;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.3rem;
        min-width: 0;
    }

    .task-header-bar .toggle-btn {
        margin-left: auto;
    }

    .task-view {
        padding: 0.65rem;
    }

    .task-description-text {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .task-actions-footer {
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.4rem 0.55rem;
    }

    .footer-info-group {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        align-items: center;
        gap: 0.25rem 0.45rem;
        padding: 0.35rem;
        border-radius: 0.5rem;
    }

    .task-actions-footer .footer-actions-group {
        flex: 1 1 100%;
        gap: 0.3rem;
    }

    .task-actions-footer .footer-actions-group button {
        min-height: 2.15rem;
        padding: 0.3rem 0.5rem;
        font-size: var(--font-xs);
    }

    .task-assignee-container {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.2rem 0.3rem;
        min-width: 0;
        overflow: visible;
        padding: 0;
    }

    .task-assignee-container .assigned-visibility,
    .task-assignee-container .assigned-btns {
        grid-area: auto;
    }

    .task-assignee-container .assigned-visibility {
        margin: 0 0.15rem 0 0.1rem;
        opacity: 1;
        visibility: visible;
    }

    .task-assignee-container .assigned-btns {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .task-assignee-container:hover .assigned-visibility {
        opacity: 1;
        visibility: visible;
    }

    .task-assignee-container:hover .assigned-btns {
        opacity: 1;
        visibility: visible;
    }

    .task-assignee-container .assigned-btns button {
        min-height: 1.75rem;
        padding: 0.1rem 0.35rem;
        line-height: 1.25;
    }

    .task-actions-footer button:focus-visible,
    .task-assignee-container button:focus-visible {
        outline: 3px solid var(--focus-ring);
        outline-offset: 2px;
    }
}

@media (hover: none), (pointer: coarse) {
    .task-assignee-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.15rem 0.25rem;
        overflow: visible;
        padding: 0;
    }

    .task-assignee-container .assigned-visibility,
    .task-assignee-container .assigned-btns {
        grid-area: auto;
    }

    .task-assignee-container .assigned-visibility {
        opacity: 1;
        visibility: visible;
        margin: 0 0.1rem;
    }

    .task-assignee-container .assigned-btns {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .task-assignee-container:hover .assigned-visibility {
        opacity: 1;
        visibility: visible;
    }

    .task-assignee-container:hover .assigned-btns {
        opacity: 1;
        visibility: visible;
    }

    .task-assignee-container .assigned-btns button {
        min-height: 1.75rem;
        padding: 0.1rem 0.35rem;
        line-height: 1.25;
    }
}

@media (max-width: 30rem) {
    .task-header-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title counts"
            "badges badges";
        gap: 0.2rem 0.3rem;
        padding: 0.35rem 0.4rem;
    }

    .header-center {
        justify-self: end;
        align-self: start;
        gap: 0.25rem !important;
    }

    .header-center > div {
        gap: 0.2rem;
        padding: 0.15rem 0.35rem;
    }

    .header-right {
        gap: 0.25rem;
    }

    .header-right .badge,
    .header-right .toggle-btn {
        padding: 0.2rem 0.4rem;
    }

    .footer-info-group {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.2rem 0.3rem;
        padding: 0.25rem;
    }

    .task-id-container,
    .task-creator {
        overflow-wrap: anywhere;
    }

    .task-assignee-container {
        justify-content: space-between;
        gap: 0.15rem;
        padding: 0;
    }

    .footer-actions-group button {
        flex: 1 1 auto;
    }
}
.edit-task-btn,
.edit-subtask-btn {
    background: var(--info-bg);
    color: var(--info);
}

.edit-task-btn:hover,
.edit-subtask-btn:hover {
    background: var(--info-light-hover);
}

.comment-item {
    position: relative;
    background: var(--bg-card);
    border: var(--border-xs) solid var(--border-light);
    border-left: var(--border-md) solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-xl);
    margin-bottom: 0.1875rem;
}

.comment-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-xl);
    margin: 0 var(--space-xs) 0.125rem;
}

.comment-author,
.comment-date {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.comment-text {
    font-size: var(--font-sm);
    color: var(--text-main);
    line-height: 1;
    margin-left: var(--space-xs);
    padding-bottom: 0.1875rem;
}

.new-subtasks-btn .btn-icon,
.btn-add-table .add-rotate,
.add-taskwindow-btn .add-rotate {
    transition: transform 0.2s ease;
}

.btn-add-table:hover .add-rotate {
    transform: rotate(90deg);
}

.btn-add-table {
    display: inline-flex;
    align-items: center;
    color: var(--primary) !important;
    font-weight: 600 !important;
    background-color: var(--primary-light);
    border: none;
    box-shadow: inset 0 0 0 var(--border-xs) var(--border-color);
    gap: var(--space-md);
    padding: var(--space-2xs) var(--space-lg) !important;
}

.btn-add-table:hover {
    background-color: var(--bg-subtle) !important;
}

.btn-add-table .add-rotate {
    width: 1rem;
    height: 1rem;
}

.text-field-md {
    border-right: var(--border-sm) solid var(--border-color);
    font-weight: 500;
    padding: var(--space-4xs) var(--space-lg);
    font-size: var(--font-lg);
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background-color: var(--bg-subtle);
    color: var(--text-subtle);
    border: var(--border-xs) solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    padding: var(--space-xs) var(--space-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    border-color: var(--border-color);
}

.toggle-btn .toggle-icon {
    transition: transform 0.2s ease;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(-90deg);
}

.task-done-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: var(--checkbox-width);
    height: var(--checkbox-width);
    border: var(--border-sm) solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    position: relative;
    outline: none;
    margin: 0;
}

.task-done-checkbox:hover {
    border-color: var(--info);
}

.task-done-checkbox:checked {
    background-color: var(--info);
    border-color: var(--info);
}

.task-done-checkbox:checked::after {
    content: '';
    width: 0.3125rem;
    height: 0.625rem;
    border: solid var(--text-inverse);
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
    position: absolute;
    top: 0.125rem;
    animation: checkboxCheck 0.2s ease-in-out;
}

@keyframes checkboxCheck {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(45deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
}

.task-done-checkbox:focus-visible {
    box-shadow: 0 0 0 0.1875rem var(--focus-ring-success);
}

.list-group-item:has(.task-done-checkbox:checked) {
    opacity: 0.6;
    background-color: var(--bg-subtle);
}

.list-group-item:has(.task-done-checkbox:checked) .task-title {
    text-decoration: line-through;
}

.tooltip-container {
    position: relative;
    cursor: help;
    border-bottom: var(--border-xs) dashed var(--warning-text);
    white-space: nowrap;
}

.tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -125%;
    transform: translateX(-50%);
    background-color: var(--info);
    color: var(--info-bg);
    padding: var(--space-2xs) var(--space-lg);
    font-size: var(--font-sm);
    border-radius: var(--radius-xs);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.tooltip-container:hover::after {
    opacity: 1;
    visibility: visible;
}

.task-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-lg);
}

.task-id-modal {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-2xl);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--font-lg) !important;
    cursor: auto;
    line-height: 1;
    transition: color 0.2s ease;
}

.badge-value,
.task-assignee,
.badge-link {
    font-weight: 600;
    color: var(--text-main);
}

.badge-link {
    text-decoration: none;
}

.badge-link:hover {
    color: var(--text-dark);
}


/* =========================================================
   ClutchTask HOMEPAGE
   HERO — ORGANIZE → PRIORITIZE → FOCUS
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.home-hero-section {
    position: relative;

    flex-direction: column;
    align-items: center;

    gap: clamp(36px, 5vh, 64px);

    padding:
        clamp(32px, 5vh, 64px)
        clamp(24px, 5vw, 72px)
        clamp(130px, 15vh, 190px) !important;
}


@media (min-width: 901px) {

    .home-page > .home-hero-section {
        min-height: calc(100% + 180px);
    }
}


/* =========================================================
   HERO — TWO COLUMNS
   ========================================================= */

.home-hero {
    position: relative;
    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0, 0.91fr)
        minmax(0, 1.09fr);

    align-items: center;

    gap: clamp(42px, 5vw, 88px);

    width: 100%;
    max-width: 1420px;

    margin: auto auto 0;
}


/* =========================================================
   HERO COPY
   ========================================================= */

.home-hero-copy {
    position: relative;

    min-width: 0;
    max-width: 650px;

    padding-left: clamp(0px, 1vw, 14px);
}


/* small positioning statement */

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin: 0 0 1.25rem;

    color: #68728f;

    font-size: 0.68rem;
    font-weight: 800;

    line-height: 1;
    letter-spacing: 0.13em;

    text-transform: uppercase;
}

.home-hero-eyebrow > span {
    width: 0.48rem;
    height: 0.48rem;

    flex: 0 0 0.48rem;

    border-radius: 50%;

    background: #7040ed;

    box-shadow:
        0 0 0 4px rgba(112, 64, 237, 0.10);
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.home-hero-copy h1 {


    margin: 0;

    color: #11152f;

    font-size:
        clamp(3rem, 4vw, 5rem);

    font-weight: 820;

    line-height: 0.94;

    letter-spacing: -0.065em;
}


.home-hero-copy .highlight-text {
    display: inline;

    background:
        linear-gradient(
            100deg,
            #6d13f4 0%,
            #6635ed 48%,
            #438ce9 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.home-hero-lead {
    max-width: 610px;

    margin: 1.8rem 0 0;

    color: #5c6683;

    font-size:
        clamp(1rem, 1.25vw, 1.12rem);

    line-height: 1.72;

    letter-spacing: -0.008em;
}


/* =========================================================
   HERO PROOF
   ========================================================= */

.home-hero-proof {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.7rem 1.35rem;

    margin-top: 1.35rem;
}


.home-hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    color: #4f5975;

    font-size: 0.78rem;
    font-weight: 700;
}


.home-hero-proof i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.15rem;
    height: 1.15rem;

    border-radius: 50%;

    background: rgba(112, 64, 237, 0.10);

    color: #6934e8;

    font-size: 0.72rem;
    font-weight: 800;
}


/* =========================================================
   HERO ACTIONS
   ========================================================= */

.home-hero .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 1rem 1.3rem;

    width: auto;
    max-width: none;

    margin-top: 1.65rem;
}


.home-page .try-it.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.65rem;

    min-height: 3.25rem;

    padding:
        0.8rem
        1.35rem;

    border: 0;
    border-radius: 0.85rem;

    background:
        linear-gradient(
            135deg,
            #7518f4,
            #5e35e8
        );

    box-shadow:
        0 0.8rem 1.7rem rgba(93, 50, 230, 0.22),
        0 0.2rem 0.5rem rgba(93, 50, 230, 0.10);

    color: #fff;

    font-size: 0.9rem;
    font-weight: 750;

    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}


.home-page .try-it.btn-primary:hover {
    transform: translateY(-2px);

    filter: brightness(1.04);

    box-shadow:
        0 1rem 2rem rgba(93, 50, 230, 0.27),
        0 0.25rem 0.65rem rgba(93, 50, 230, 0.12);
}


.home-login-link {
    color: #59637f;

    font-size: 0.86rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 160ms ease;
}


.home-login-link:hover {
    color: #6334df;

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   TASK PREVIEW
   ========================================================= */

.home-task-preview {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 790px;

    min-width: 0;

    padding:
        clamp(1.25rem, 1.8vw, 1.6rem);

    border:
        1px solid
        rgba(255, 255, 255, 0.88);

    border-radius: 1.6rem;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(247, 247, 255, 0.91)
        );

    box-shadow:
        0 2.4rem 5rem -2.3rem
        rgba(49, 43, 130, 0.25),

        0 0.8rem 1.8rem
        rgba(42, 46, 91, 0.07),

        inset 0 1px 0
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    isolation: isolate;
}


/* ambient light behind application */

.home-task-preview::before {
    content: "";

    position: absolute;

    z-index: -1;

    inset:
        12%
        -10%
        -12%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 35%,
            rgba(113, 56, 244, 0.22),
            transparent 48%
        ),
        radial-gradient(
            circle at 78% 65%,
            rgba(56, 169, 216, 0.16),
            transparent 45%
        );

    filter: blur(35px);

    opacity: 0.85;

    pointer-events: none;
}


/* =========================================================
   APPLICATION HEADER
   ========================================================= */

.home-task-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin: 0 0 0.9rem;

    padding:
        0.1rem
        0.25rem
        1rem;

    border-bottom:
        1px solid
        rgba(100, 106, 140, 0.12);
}


.home-preview-kicker {
    display: block;

    margin-bottom: 0.32rem;

    color: #8b91a8;

    font-size: 0.57rem;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.13em;
}


.home-task-preview-heading h2 {
    margin: 0;

    color: #181b31;

    font-size:
        clamp(1.3rem, 1.8vw, 1.55rem);

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.045em;
}


.home-preview-add-task {
    display: inline-flex;
    align-items: center;

    gap: 0.45rem;

    min-height: 2.35rem;

    padding:
        0.45rem
        0.8rem;

    border:
        1px solid
        rgba(84, 67, 190, 0.16);

    border-radius: 0.65rem;

    background: rgba(255, 255, 255, 0.75);

    color: #6424e9;

    box-shadow:
        0 0.2rem 0.6rem
        rgba(52, 42, 125, 0.06);

    font-size: 0.7rem;
    font-weight: 750;
}


/* =========================================================
   TASK SECTION HEADER
   ========================================================= */

.home-task-preview .section-header {
    margin:
        0.65rem
        0.25rem
        0.55rem;

    padding: 0;
}


.home-task-preview .section-header h2 {
    margin: 0;

    color: #282c43;

    font-size: 0.85rem;
    font-weight: 750;
}


/* =========================================================
   TASK LIST
   ========================================================= */

.home-preview-task-list {
    display: grid;

    gap: 0.55rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.home-task-preview .list-group-item {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(100, 106, 140, 0.12);

    border-radius: 0.85rem;

    background:
        rgba(255, 255, 255, 0.84);

    box-shadow:
        0 0.25rem 0.8rem
        rgba(25, 30, 68, 0.045);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}


/* =========================================================
   FOCUS TASK
   ========================================================= */

.home-task-preview .home-focus-task {
    border:
        1.5px solid
        rgba(108, 55, 236, 0.75);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(250, 247, 255, 0.97)
        );

    box-shadow:
        0 0 0 4px
        rgba(108, 55, 236, 0.065),

        0 1rem 2rem
        rgba(92, 50, 244, 0.11);
}


/* focus stripe */

.home-task-preview .home-focus-task::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #7824f4,
            #4e79ec
        );
}


/* =========================================================
   TASK HEADER
   ========================================================= */

.home-task-preview .task-header-bar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap:
        clamp(0.4rem, 0.8vw, 0.8rem);

    padding:
        0.55rem
        0.7rem;
}


.home-task-preview .header-left,
.home-task-preview .header-center,
.home-task-preview .header-right {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 0.42rem;
}


.home-task-preview .header-right {
    justify-content: flex-end;
}


/* task number */

.home-task-preview .orders-badge {
    display: inline-flex;
    align-items: center;

    gap: 0.3rem !important;

    padding:
        0.18rem
        0.35rem;

    border-radius: 0.42rem;

    background: #f0eff7;
}


.home-task-preview .task-orders-badge {
    min-width: 1.35rem;

    color: #282c42;

    font-size: 0.65rem;
    font-weight: 800;

    text-align: center;
}


.home-task-preview .handle-icon {
    color: #747b96;

    font-size: 0.82rem;
}


/* task title */

.home-task-preview .header-left .task-title {
    min-width: 0;

    overflow: hidden;

    color: #181b31;

    font-size:
        clamp(0.73rem, 0.9vw, 0.84rem);

    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* center metadata */

.home-task-preview .header-center {
    gap: 0.65rem !important;

    color: #7c8299;

    font-size: 0.68rem;
}


.home-task-preview .sub-info,
.home-task-preview .comm-info {
    display: inline-flex;
    align-items: center;

    gap: 0.2rem;

    white-space: nowrap;
}


/* =========================================================
   FOCUS LABEL
   ========================================================= */

.home-focus-label {
    display: inline-flex;
    align-items: center;

    gap: 0.3rem;

    min-height: 1.65rem;

    padding:
        0.22rem
        0.48rem;

    border:
        1px solid
        rgba(108, 55, 236, 0.16);

    border-radius: 0.48rem;

    background:
        rgba(108, 55, 236, 0.085);

    color: #6631d9;

    font-size: 0.55rem;
    font-weight: 850;

    letter-spacing: 0.035em;

    text-transform: uppercase;

    white-space: nowrap;
}


.home-focus-label i {
    font-size: 0.58rem;
}


/* =========================================================
   BADGES
   ========================================================= */

.home-task-preview .header-right .badge {
    display: inline-flex;
    align-items: center;

    gap: 0.28rem;

    min-height: 1.7rem;

    padding:
        0.2rem
        0.48rem;

    border-radius: 0.48rem;

    font-size: 0.55rem;
    font-weight: 750;

    white-space: nowrap;
}


/* High priority remains red —
   but does NOT define the focus state. */

.home-task-preview .task-priority.priority-high {
    background: #ef3156 !important;
    color: #fff !important;

    border-color: transparent !important;
}


.home-task-preview .task-own-end {
    background: #e8f45d !important;

    color: #293118 !important;

    border-color: transparent !important;
}


/* =========================================================
   EXPAND
   ========================================================= */

.home-task-preview .home-preview-expand {
    display: inline-flex;
    align-items: center;

    gap: 0.22rem;

    color: #6531dd;

    font-size: 0.57rem;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   EXPANDED TASK
   ========================================================= */

.home-task-preview .task-view {
    padding:
        0.45rem
        0.65rem
        0.7rem;
}


.home-task-preview .task-description-text {
    margin:
        0 0 0.5rem;

    padding:
        0.48rem
        0.62rem;

    border:
        1px solid
        rgba(83, 87, 125, 0.10);

    border-radius: 0.55rem;

    background:
        rgba(247, 248, 252, 0.82);

    color: #5a637d;

    font-size: 0.67rem;

    line-height: 1.45;

    white-space: normal;
}


/* =========================================================
   SUBTASKS / COMMENTS
   ========================================================= */

.home-task-preview .task-columns-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 0.5rem;
}


.home-task-preview .subtask-view,
.home-task-preview .task-comments {
    min-width: 0;

    padding:
        0.48rem
        0.55rem;

    border:
        1px solid
        rgba(83, 87, 125, 0.10);

    border-radius: 0.58rem;

    background:
        rgba(249, 249, 253, 0.84);
}


.home-task-preview .subtask-header,
.home-task-preview .comments-header {
    margin:
        0 0 0.35rem;

    padding:
        0 0 0.32rem;

    border-bottom:
        1px solid
        rgba(83, 87, 125, 0.09);

    color: #292d43;

    font-size: 0.68rem;
}


.home-task-preview .subtasks-list ul,
.home-task-preview .comments-list {
    display: grid;

    gap: 0.28rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.home-task-preview .subtask-item-view {
    padding:
        0.38rem
        0.42rem;

    border:
        1px solid
        rgba(83, 87, 125, 0.09);

    border-left:
        3px solid
        #7028ef;

    border-radius: 0.45rem;

    background: #fff;
}


.home-task-preview .subtask-title {
    color: #3c4259;

    font-size: 0.64rem;
}


.home-task-preview .task-comments li {
    color: #646b82;

    font-size: 0.6rem;

    line-height: 1.4;
}


.home-task-preview .task-comments li + li {
    padding-top: 0.28rem;

    border-top:
        1px solid
        rgba(83, 87, 125, 0.08);
}


/* =========================================================
   SECONDARY TASKS
   ========================================================= */

.home-task-preview .next-task {
    opacity: 0.43 !important;

    transform: scale(0.985);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}


.home-task-preview .next-task:hover {
    opacity: 0.72 !important;

    transform: scale(0.99);

    box-shadow:
        0 0.5rem 1.1rem
        rgba(25, 30, 68, 0.07) !important;
}


/* remove unnecessary full-width visual dominance */

.home-task-preview .home-preview-collapsed-task .task-header-bar {
    border-bottom: 0;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.home-summary-content {
    position: relative;
    z-index: 3;

    width: min(100%, 1080px);

    margin:
        clamp(1rem, 2vw, 2rem)
        auto
        0;

    padding:
        0
        clamp(0.5rem, 2vw, 1.5rem);
}


.home-summary-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 0.55rem;

    margin-bottom: 0.8rem;

    color: #717a96;

    font-size: 0.65rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.home-summary-eyebrow::before {
    content: "";

    width: 0.42rem;
    height: 0.42rem;

    border-radius: 50%;

    background: #6d35eb;
}


.home-summary-content h2 {
    margin: 0 0 2rem;

    color: var(--text-dark);

    font-size:
        clamp(2rem, 3.6vw, 3rem);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.055em;
    text-align: center;
}


.home-summary-content > p {

    margin: 0;

    color: #626c88;

    font-size: 1rem;
    text-align: center;

    line-height: 1.72;
}


/* =========================================================
   SUMMARY FEATURES
   ========================================================= */

.home-summary-features {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0.75rem;

    margin:
        1.8rem 0 0;

    padding: 0;

    list-style: none;
}


.home-summary-features li {
    position: relative;

    display: grid;

    gap: 0.38rem;

    min-width: 0;

    padding:
        1rem
        1.05rem;

    border:
        1px solid
        rgba(148, 163, 184, 0.20);

    border-radius: 0.85rem;

    background:
        rgba(255, 255, 255, 0.70);

    box-shadow:
        0 0.3rem 1rem
        rgba(40, 46, 88, 0.035);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}


.home-summary-features li:hover {
    transform: translateY(-2px);

    border-color:
        rgba(108, 55, 236, 0.20);

    box-shadow:
        0 0.6rem 1.3rem
        rgba(40, 46, 88, 0.07);
}


.home-summary-features strong {
    color: #252a42;

    font-size: 0.85rem;
    font-weight: 800;
}


.home-summary-features span {
    color: #6a728b;

    font-size: 0.76rem;

    line-height: 1.5;
}


/* =========================================================
   EXPLORE
   ========================================================= */

.home-explore {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;

    width: min(100%, 1100px);

    margin:
        clamp(26px, 4vh, 46px)
        auto
        clamp(22px, 5vh, 50px);

    padding:
        0
        0.5rem;
}


.home-explore-prompt {
    display: inline-flex;
    align-items: center;

    gap: 1rem;

    width: min(100%, 820px);

    min-height: 6rem;

    padding:
        1.1rem
        clamp(1rem, 3vw, 1.8rem);

    border:
        1px solid
        rgba(99, 102, 241, 0.18);

    border-radius: 1.15rem;

    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.90),
            rgba(238, 242, 255, 0.82)
        );

    box-shadow:
        0 0.9rem 2.5rem
        rgba(55, 65, 155, 0.10);

    color: #5e6681;

    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}


.home-explore-prompt:hover {
    transform: translateY(-2px);

    border-color:
        rgba(70, 72, 230, 0.34);

    box-shadow:
        0 1.1rem 2.8rem
        rgba(55, 65, 155, 0.15);
}


.home-explore-prompt > span:last-child {
    display: grid;

    gap: 0.15rem;
}


.home-explore-prompt strong {
    color: #292d46;

    font-size: 1.1rem;
    font-weight: 750;
}


.home-explore-prompt small {
    color: #6d758d;

    font-size: 0.78rem;
}


.home-explore-icon {
    display: grid;

    flex: 0 0 3rem;

    width: 3rem;
    height: 3rem;

    place-items: center;

    border-radius: 0.85rem;

    background:
        linear-gradient(
            145deg,
            #7138f4,
            #4b82eb
        );

    box-shadow:
        0 0.45rem 1rem
        rgba(70, 72, 230, 0.23);

    color: #fff;

    font-size: 1.2rem;
}


.home-section-links {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 0.55rem;
}


.home-section-links a {
    display: inline-flex;
    align-items: center;

    gap: 0.4rem;

    min-height: 2.5rem;

    padding:
        0.48rem
        0.9rem;

    border:
        1px solid
        rgba(148, 163, 184, 0.30);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.48);

    color: #68718b;

    font-size: 0.78rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}


.home-section-links a:hover {
    border-color:
        rgba(70, 72, 230, 0.25);

    background: rgba(255, 255, 255, 0.82);

    color: #6334df;
}


.home-section-links a i {
    color: #6334df;
}


/* =========================================================
   FEATURE SECTIONS
   ========================================================= */

.home-feature-section .spotlight-content h2 {
    width: 100%;

    margin: 0 0 1rem;

    color: #151932;

    font-size:
        clamp(2rem, 4vw, 3.3rem);

    font-weight: 800;

    line-height: 1.06;

    letter-spacing: -0.06em;
}


.home-feature-description {
    width: 100%;

    color: #626c88;

    font-size: 1rem;

    line-height: 1.8;

    overflow-wrap: anywhere;
}


.home-feature-description p {
    margin: 0 0 1rem;

    color: inherit;

    font-size: inherit;

    line-height: inherit;

    text-align: left;
}


.home-feature-description p:last-child {
    margin-bottom: 0;
}


.home-feature-description strong,
.home-feature-description b {
    color: #2b3048;
}


/* =========================================================
   FAQ
   ========================================================= */

.fullpage-container > .page-section.home-faq-section {
    position: relative;
    z-index: 3;

    align-items: flex-start;
    justify-content: center;

    padding:
        clamp(5rem, 10vh, 8rem)
        clamp(1.25rem, 6vw, 6rem)
        clamp(3rem, 7vw, 6rem);
}


.home-faq-content {
    width: min(100%, 900px);

    margin: 0 auto;
}


.home-faq-intro {
    max-width: 650px;

    margin:
        0 auto
        2rem;

    text-align: center;
}


.home-faq-intro .home-eyebrow {
    justify-content: center;

    margin-bottom: 0.75rem;
}


.home-faq-intro h2 {
    max-width: 28ch;

    margin:
        0 auto
        0.75rem;

    color: #151932;

    font-size:
        clamp(1.9rem, 3.5vw, 2.8rem);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.055em;
}


.home-faq-intro > p {
    margin: 0;

    color: #626c88;

    font-size: 0.95rem;

    line-height: 1.65;
}


.home-faq-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0.75rem;

    align-items: start;
}


.home-faq-item {
    min-width: 0;

    overflow: clip;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 0.9rem;

    background:
        rgba(255, 255, 255, 0.78);

    box-shadow:
        0 0.4rem 1.1rem
        rgba(35, 48, 79, 0.055);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}


.home-faq-item:hover,
.home-faq-item[open] {
    border-color:
        rgba(99, 102, 241, 0.25);

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 0.65rem 1.5rem
        rgba(55, 65, 155, 0.09);
}


.home-faq-item summary {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 3.7rem;

    padding:
        0.85rem
        3rem
        0.85rem
        1.05rem;

    color: #30354c;

    cursor: pointer;

    font-size: 0.85rem;
    font-weight: 700;

    line-height: 1.45;

    list-style: none;
}


.home-faq-item summary::-webkit-details-marker {
    display: none;
}


.home-faq-item summary::after {
    position: absolute;

    top: 50%;
    right: 0.95rem;

    display: grid;

    width: 1.45rem;
    height: 1.45rem;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.08);

    color: #6531dd;

    content: "+";

    font-size: 1rem;

    transform: translateY(-50%);

    transition:
        background-color 180ms ease;
}


.home-faq-item[open] summary::after {
    background: #6531dd;

    color: #fff;

    content: "\2212";
}


.home-faq-item p {
    margin: 0;

    padding:
        0.1rem
        1.05rem
        1.05rem;

    color: #68718b;

    font-size: 0.82rem;

    line-height: 1.65;
}


/* =========================================================
   CTA
   ========================================================= */

.home-cta-section {
    position: relative;
    isolation: isolate;

    width: 100%;

    padding:
        clamp(24px, 4vh, 42px)
        clamp(18px, 5vw, 64px)
        clamp(32px, 5vh, 54px);

    scroll-snap-align: end;
}


.home-cta-card {
    position: relative;
    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    column-gap:
        clamp(1rem, 4vw, 3.5rem);

    width: min(100%, 1080px);

    margin: auto;

    padding:
        clamp(1.35rem, 3vw, 2rem)
        clamp(1.4rem, 4vw, 3rem);

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.82);

    border-radius: 1.2rem;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(117, 155, 255, 0.16),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.93),
            rgba(245, 248, 255, 0.88)
        );

    box-shadow:
        0 0.75rem 2rem
        rgba(35, 48, 79, 0.10);

    backdrop-filter: blur(16px);
}


.home-cta-card .home-eyebrow {
    grid-column: 1;

    margin: 0 0 0.5rem;

    font-size: 0.68rem;
}


.home-cta-card h2 {
    grid-column: 1;

    margin: 0 0 0.4rem;

    color: #151932;

    font-size:
        clamp(1.35rem, 2.6vw, 2rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.045em;
}


.home-cta-card > p {
    grid-column: 1;

    max-width: 42rem;

    margin: 0;

    color: #626c88;

    font-size: 0.88rem;

    line-height: 1.6;
}


.home-cta-card > .try-it {
    grid-column: 2;
    grid-row: 1 / span 3;

    white-space: nowrap;
}


.home-cta-actions {
    grid-column: 2;
    grid-row: 1 / span 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.5rem;
}


.home-cta-actions .home-login-link {
    font-size: 0.75rem;
}


/* =========================================================
   RESPONSIVE — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .home-hero {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 2.5rem;
    }

    .home-hero-copy h1 {
        font-size:
            clamp(3rem, 5vw, 4.35rem);
    }

    .home-focus-label {
        display: none;
    }

    .home-task-preview .task-own-end {
        display: none;
    }

    .home-summary-features {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — 900px
   ========================================================= */

@media (max-width: 900px) {

    .home-hero-section {
        padding-inline: 24px !important;
    }

    .home-hero {
        grid-template-columns:
            minmax(0, 1.03fr)
            minmax(0, 0.97fr);

        gap: 1.5rem;

        max-width: 820px;
    }

    .home-hero-copy h1 {
        font-size:
            clamp(2.7rem, 5vw, 3.7rem);
    }

    .home-hero-lead {
        font-size: 0.94rem;
    }

    .home-task-preview .header-center {
        display: none;
    }

    .home-task-preview .task-header-bar {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .home-task-preview .header-left {
        min-width: 0;
    }

    .home-task-preview .header-right {
        justify-content: flex-end;
    }

    .home-summary-features {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-faq-list {
        grid-template-columns:
            minmax(0, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — 760px
   ========================================================= */

@media (max-width: 760px) {

    .home-task-preview,
    .home-cta-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .home-task-preview::before {
        display: none;
    }

    .home-hero-section {
        gap: 2rem;

        padding:
            28px
            18px
            48px !important;
    }

    .home-hero {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 2rem;

        width: 100%;

        max-width: 560px;
    }

    .home-hero-copy {
        max-width: none;

        padding-left: 0;
    }

    .home-hero-eyebrow {
        margin-bottom: 1rem;

        font-size: 0.61rem;
    }

    .home-hero-copy h1 {
        max-width: 11.5ch;

        font-size:
            clamp(2.65rem, 10vw, 4rem);

        line-height: 0.95;
    }

    .home-hero-lead {
        max-width: none;

        margin-top: 1.35rem;

        font-size: 0.94rem;

        line-height: 1.65;
    }

    .home-hero-proof {
        margin-top: 1.1rem;

        gap: 0.6rem 1rem;
    }

    .home-hero-proof span {
        font-size: 0.72rem;
    }

    .home-task-preview {
        width: 100%;

        padding: 0.8rem;

        border-radius: 1.15rem;
    }

    .home-task-preview .header-center {
        display: none;
    }

    .home-task-preview .task-header-bar {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .home-task-preview .header-right {
        justify-content: flex-end;
    }

    .home-task-preview .task-own-end {
        display: none;
    }

    .home-task-preview .home-preview-collapsed-task {
        display: flex;
    }

    .home-task-preview .task-columns-container {
        grid-template-columns: 1fr;
    }

    .home-summary-content {
        width: 100%;

        margin-top: 0;

        padding-inline: 0;
    }

    .home-summary-content h2 {
        max-width: 18ch;

        font-size:
            clamp(1.9rem, 7vw, 2.55rem);
    }

    .home-summary-features {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 0.65rem;

        margin-top: 1.4rem;
    }

    .home-summary-features li {
        padding:
            0.9rem
            1rem;
    }

    .home-explore {
        margin-top: 2rem;
    }

    .home-explore-prompt {
        min-height: 5.5rem;

        padding: 0.9rem 1rem;
    }

    .home-explore-prompt strong {
        font-size: 0.98rem;
    }

    .home-explore-prompt small {
        font-size: 0.7rem;
    }

    .home-explore-icon {
        flex-basis: 2.8rem;

        width: 2.8rem;
        height: 2.8rem;

        font-size: 1.1rem;
    }

    .home-cta-card {
        grid-template-columns:
            minmax(0, 1fr);

        row-gap: 0.2rem;

        padding:
            1.35rem
            1.2rem;
    }

    .home-cta-card .home-eyebrow,
    .home-cta-card h2,
    .home-cta-card > p,
    .home-cta-card > .try-it,
    .home-cta-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .home-cta-card > .try-it,
    .home-cta-actions {
        justify-self: start;

        margin-top: 0.85rem;
    }

    .home-cta-actions {
        align-items: flex-start;
    }
}


/* =========================================================
   RESPONSIVE — 540px
   ========================================================= */

@media (max-width: 540px) {

    .home-hero .hero-actions {
        align-items: flex-start;

        flex-direction: column;

        gap: 0.65rem;
    }

    .home-page .try-it.btn-primary {
        min-height: 2.8rem;

        padding:
            0.65rem
            1rem;

        font-size: 0.84rem;
    }

    .home-task-preview {
        padding: 0.55rem;
    }

    .home-task-preview-heading {
        padding-bottom: 0.7rem;
    }

    .home-preview-add-task {
        min-height: 2rem;

        padding:
            0.35rem
            0.55rem;

        font-size: 0.58rem;
    }

    .home-task-preview-heading h2 {
        font-size: 1.1rem;
    }

    .home-task-preview .task-header-bar {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 0.35rem;

        padding:
            0.4rem
            0.5rem;
    }

    .home-task-preview .header-right {
        justify-content: flex-start;
    }

    .home-task-preview .home-preview-expand {
        font-size: 0.54rem;
    }

    .home-focus-label {
        display: inline-flex;
    }

    .home-task-preview .home-preview-collapsed-task {
        display: none;
    }

    .home-explore {
        align-items: stretch;
    }

    .home-explore-prompt {
        align-self: center;

        max-width: 100%;

        min-height: 5.5rem;

        padding: 0.9rem;
    }

    .home-section-links {
        gap: 0.45rem;
    }

    .home-section-links a {
        min-height: 2.3rem;

        padding:
            0.45rem
            0.75rem;

        font-size: 0.72rem;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .home-hero-section {
        padding:
            20px
            14px
            36px !important;
    }

    .home-hero-copy h1 {
        font-size: 2.55rem;
    }

    .home-hero-lead {
        font-size: 0.88rem;
    }

    .home-hero-proof {
        gap: 0.5rem 0.8rem;
    }

    .home-hero-proof span {
        font-size: 0.67rem;
    }

    .home-summary-content h2 {
        font-size: 1.85rem;
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

.home-page .try-it.btn-primary:focus-visible,
.home-login-link:focus-visible,
.home-explore-prompt:focus-visible,
.home-section-links a:focus-visible,
.home-faq-item summary:focus-visible {
    outline:
        3px solid
        rgba(70, 72, 230, 0.42);

    outline-offset: 4px;
}


@media (prefers-reduced-motion: reduce) {

    .home-page .try-it.btn-primary,
    .home-explore-prompt,
    .home-section-links a,
    .home-summary-features li,
    .home-task-preview .next-task {
        transition: none;
    }
}