/* ============================================================
   HUGiiNE — MOOD INTELLIGENCE LANDING
   ============================================================ */

:root {
    --mood-navy: #07163f;
    --mood-blue: #1769ff;
    --mood-cyan: #13b8c7;
    --mood-purple: #8a62ff;
    --mood-green: #5bbd68;
    --mood-text: #3d4d68;
    --mood-muted: #65758f;
    --mood-line: rgba(30, 70, 120, 0.10);
    --mood-shadow:
        0 14px 42px
        rgba(28, 55, 95, 0.08);
    --mood-gradient:
        linear-gradient(
            90deg,
            #2d66ff 0%,
            #10b9bf 100%
        );
    --mood-title-gradient:
        linear-gradient(
            90deg,
            #16a3c5 0%,
            #3b7cff 45%,
            #8c5cf6 100%
        );
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--mood-navy);
    background: #f8fbff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

body.mood-auth-open {
    overflow: hidden;
}

.hidden {
    display: none !important;
}


/* ============================================================
   PAGE
   ============================================================ */

.mood-landing {
    width: 100%;

    /*
     * 100vh is the broad fallback.
     * 100dvh follows browser chrome correctly on current mobile browsers.
     */
    min-height: 100vh;
    min-height: 100dvh;

    padding: 22px 0 44px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 64% 27%,
            rgba(57, 204, 219, 0.08),
            transparent 22%
        ),
        radial-gradient(
            circle at 92% 46%,
            rgba(140, 92, 246, 0.08),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 70%,
            #f8fbff 100%
        );
}

.mood-landing-shell {
    width: min(1380px, calc(100% - 64px));

    margin: 0 auto;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.mood-topbar {
    position: relative;
    z-index: 30;

    min-height: 76px;

    padding: 0 28px;

    border:
        1px solid
        rgba(30, 70, 120, 0.06);

    border-radius: 22px;

    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        auto
        minmax(290px, 1fr);

    align-items: center;

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

    box-shadow:
        0 10px 32px
        rgba(28, 55, 95, 0.07);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}

.mood-brand {
    width: fit-content;

    display: flex;
    align-items: center;
}

.mood-brand img {
    display: block;

    width: 270px;
    max-width: 100%;
    height: auto;
}

.mood-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;
}

.mood-nav a {
    color: #17213d;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.18s ease;
}

.mood-nav a:hover {
    color: var(--mood-blue);
}

.mood-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.mood-language-switcher {
    display: flex;
    align-items: center;

    gap: 4px;
}

.mood-language-switcher form {
    margin: 0;
    padding: 0;
}

.mood-language-switcher button {
    width: 34px;
    height: 30px;

    padding: 0;

    border:
        1px solid
        transparent;

    border-radius: 8px;

    background:
        transparent;

    color: #6b7890;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.mood-language-switcher button:hover,
.mood-language-switcher button.active {
    border-color:
        rgba(23, 105, 255, 0.18);

    background:
        rgba(23, 105, 255, 0.06);

    color: var(--mood-blue);
}

.mood-header-cta {
    min-width: 144px;
    height: 50px;

    padding: 0 22px;

    border: 0;
    border-radius: 13px;

    background:
        var(--mood-gradient);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 24px
        rgba(23, 105, 255, 0.16);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.mood-header-cta:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px
        rgba(23, 105, 255, 0.20);
}


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

.mood-hero {
    position: relative;

    min-height: 520px;

    padding:
        60px
        44px
        36px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, 0.75fr);

    align-items: center;

    gap: 48px;

    overflow: hidden;
}

.mood-hero::before {
    content: "";

    position: absolute;

    inset:
        0
        -14%
        -20px
        -14%;

    background:
        radial-gradient(
            circle at 58% 48%,
            rgba(53, 190, 220, 0.10),
            transparent 26%
        ),
        radial-gradient(
            circle at 92% 52%,
            rgba(137, 98, 255, 0.11),
            transparent 32%
        );

    pointer-events: none;
}

.mood-hero-wave {
    position: absolute;
    z-index: 0;

    left: -4%;
    right: -3%;
    bottom: 0;

    height: 52%;

    background:
        url('/assets/images/hugiine_mood_wave.webp')
        center
        bottom
        /
        112%
        auto
        no-repeat;

    opacity: 0.22;

    filter:
        saturate(0.92);

    pointer-events: none;
}

.mood-hero-copy {
    position: relative;
    z-index: 5;

    max-width: 670px;
}

.mood-hero-copy h1 {
    margin: 0;

    display: flex;
    flex-direction: column;

    color: var(--mood-navy);

    font-size:
        clamp(
            48px,
            5.5vw,
            76px
        );

    font-weight: 500;
    line-height: 0.98;

    letter-spacing:
        -0.045em;
}

.mood-hero-title-main {
    display: block;
}

.mood-hero-title-gradient {
    display: inline-block;

    margin-top: 8px;
    margin-bottom: -0.16em;

    padding-bottom: 0.16em;

    background:
        var(--mood-title-gradient);

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

    -webkit-text-fill-color:
        transparent;

    color:
        transparent;
}

.mood-hero-copy p {
    max-width: 560px;

    margin:
        30px
        0
        0;

    color: var(--mood-text);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
}

.mood-hero-actions {
    margin-top: 30px;

    display: flex;
    align-items: center;

    gap: 18px;
}

.mood-btn {
    min-width: 180px;
    height: 50px;

    padding:
        0
        24px;

    border-radius: 12px;

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

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.mood-btn:hover {
    transform:
        translateY(-1px);
}

.mood-btn-primary {
    border: 0;

    background:
        var(--mood-gradient);

    color: #ffffff;

    box-shadow:
        0 11px 24px
        rgba(23, 105, 255, 0.16);
}

.mood-btn-secondary {
    border:
        1.5px solid
        var(--mood-blue);

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

    color:
        var(--mood-blue);
}

.mood-phone-wrap {
    position: relative;
    z-index: 6;

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

.mood-phone-wrap::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(61, 204, 214, 0.10),
            rgba(132, 91, 245, 0.04) 52%,
            transparent 70%
        );

    filter:
        blur(2px);
}

.mood-phone {
    position: relative;
    z-index: 2;

    display: block;

    width: min(330px, 100%);
    height: auto;

    filter:
        drop-shadow(
            0
            18px
            28px
            rgba(
                23,
                39,
                72,
                0.10
            )
        );
}


/* ============================================================
   BENEFITS
   ============================================================ */

.mood-benefits {
    position: relative;
    z-index: 12;

    margin:
        0
        8px
        20px;

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

    gap: 18px;
}

.mood-benefit-card {
    min-height: 116px;

    padding:
        18px
        22px;

    border:
        1px solid
        rgba(30, 70, 120, 0.08);

    border-radius: 15px;

    display: flex;
    align-items: center;

    gap: 18px;

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

    box-shadow:
        0 10px 28px
        rgba(28, 55, 95, 0.06);
}

.mood-benefit-card h2 {
    margin:
        0
        0
        5px;

    color:
        var(--mood-navy);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.mood-benefit-card p {
    margin: 0;

    color:
        var(--mood-text);

    font-size: 13px;
    line-height: 1.45;
}

.mood-benefit-icon {
    width: 58px;
    height: 58px;

    flex:
        0
        0
        58px;

    border-radius: 50%;

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

.mood-benefit-icon svg {
    width: 31px;
    height: 31px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mood-benefit-icon-purple {
    background:
        rgba(143, 99, 255, 0.10);

    color:
        #7b5af2;
}

.mood-benefit-icon-cyan {
    background:
        rgba(19, 184, 199, 0.10);

    color:
        #10aab9;
}

.mood-benefit-icon-green {
    background:
        rgba(91, 189, 104, 0.12);

    color:
        #54ae60;
}


/* ============================================================
   MOOD INTELLIGENCE
   ============================================================ */

.mood-intelligence {
    margin:
        18px
        8px
        30px;

    min-height: 340px;

    padding:
        30px
        36px;

    border:
        1px solid
        rgba(30, 70, 120, 0.06);

    border-radius: 24px;

    display: grid;
    grid-template-columns:
        minmax(300px, 0.38fr)
        minmax(620px, 0.62fr);

    align-items: center;

    gap: 36px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 63% 52%,
            rgba(44, 200, 213, 0.09),
            transparent 25%
        ),
        radial-gradient(
            circle at 82% 52%,
            rgba(132, 91, 245, 0.07),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            rgba(248, 252, 255, 0.98),
            rgba(244, 248, 255, 0.88)
        );
}

.mood-intelligence-copy {
    padding-left: 6px;
}

.mood-kicker {
    display: block;

    margin-bottom: 14px;

    color: #1598ad;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.mood-intelligence-copy h2 {
    max-width: 350px;

    margin:
        0
        0
        18px;

    color:
        var(--mood-navy);

    font-size:
        clamp(
            36px,
            3.3vw,
            50px
        );

    font-weight: 500;
    line-height: 1.05;

    letter-spacing:
        -0.04em;
}

.mood-intelligence-copy p {
    max-width: 360px;

    margin: 0;

    color:
        var(--mood-text);

    font-size: 15px;
    line-height: 1.55;
}


/* ============================================================
   ORBIT STAGE
   ============================================================ */

.mood-orbit-stage {
    position: relative;

    min-height: 285px;
}

.mood-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border:
        1px solid
        rgba(55, 122, 227, 0.18);

    border-radius: 50%;

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(-7deg);

    pointer-events: none;
}

.mood-orbit-one {
    width: 430px;
    height: 126px;
}

.mood-orbit-two {
    width: 500px;
    height: 178px;

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(7deg);
}

.mood-orbit-three {
    width: 560px;
    height: 224px;

    border-color:
        rgba(138, 98, 255, 0.12);

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(-2deg);
}

.mood-core {
    position: absolute;
    z-index: 8;

    left: 50%;
    top: 50%;

    width: 118px;
    height: 118px;

    border-radius: 50%;

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

    transform:
        translate(
            -50%,
            -50%
        );

    background:
        radial-gradient(
            circle at 42% 28%,
            #5de4dd 0%,
            #19b3c1 34%,
            #5b7bf1 68%,
            #8c5cf6 100%
        );

    box-shadow:
        0 20px 30px
        rgba(62, 95, 203, 0.20),
        inset
        0
        2px
        18px
        rgba(255, 255, 255, 0.55);
}

.mood-core::after {
    content: "";

    position: absolute;

    left: 20%;
    right: 20%;
    bottom: -20px;

    height: 18px;

    border-radius: 50%;

    background:
        rgba(90, 77, 210, 0.18);

    filter:
        blur(12px);
}

.mood-core-glow {
    position: absolute;

    inset: -24px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(41, 199, 210, 0.16),
            transparent 65%
        );
}

.mood-core img {
    position: relative;
    z-index: 2;

    width: 58px;
    height: 58px;

    object-fit: contain;

    filter:
        brightness(0)
        invert(1);
}

.mood-node {
    position: absolute;
    z-index: 10;

    display: flex;
    align-items: center;

    gap: 12px;
}

.mood-node-copy {
    width: 150px;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.mood-node-copy-left {
    text-align: right;
}

.mood-node-copy-right {
    text-align: left;
}

.mood-node-copy strong {
    color:
        var(--mood-navy);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.mood-node-copy span {
    color:
        #5b6880;

    font-size: 10px;
    line-height: 1.35;
}

.mood-node-icon {
    width: 46px;
    height: 46px;

    flex:
        0
        0
        46px;

    border-radius: 50%;

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

    box-shadow:
        0 6px 18px
        rgba(30, 70, 120, 0.05);
}

.mood-node-icon svg {
    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mood-node-icon-purple {
    background:
        rgba(143, 99, 255, 0.12);

    color:
        #7b5af2;
}

.mood-node-icon-blue {
    background:
        rgba(45, 132, 255, 0.11);

    color:
        #2782ef;
}

.mood-node-icon-cyan {
    background:
        rgba(19, 184, 199, 0.11);

    color:
        #0faeba;
}

.mood-node-icon-teal {
    background:
        rgba(31, 190, 184, 0.12);

    color:
        #12a9a4;
}

.mood-node-icon-green {
    background:
        rgba(91, 189, 104, 0.12);

    color:
        #54ae60;
}

.mood-node-state {
    left: 2%;
    top: 12%;
}

.mood-node-time {
    left: -2%;
    top: 42%;
}

.mood-node-activity {
    left: 0;
    bottom: 5%;
}

.mood-node-location {
    right: 1%;
    top: 10%;
}

.mood-node-notes {
    right: -1%;
    top: 43%;
}

.mood-node-patterns {
    right: 0;
    bottom: 4%;
}


/* ============================================================
   FOOTER
   ============================================================ */

.mood-landing .site-footer {
    margin-top: 24px;

    background:
        transparent;
}


/* ============================================================
   AUTH MODAL
   ============================================================ */

.mood-auth-modal {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.mood-auth-modal.is-open {
    display: flex;
}

.mood-auth-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(7, 22, 63, 0.44);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.mood-auth-dialog {
    position: relative;
    z-index: 2;

    width: min(500px, 100%);

    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    max-height:
        calc(
            var(
                --home-visible-height,
                100dvh
            )
            -
            48px
        );

    padding:
        32px
        38px
        34px;

    overflow-y: auto;

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

    border-radius: 28px;

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

    box-shadow:
        0 30px 90px
        rgba(7, 22, 63, 0.22);
}

.mood-auth-dialog::before {
    content: "";

    position: absolute;

    top: 0;
    left: 42px;
    right: 42px;

    height: 4px;

    border-radius:
        0
        0
        999px
        999px;

    background:
        linear-gradient(
            90deg,
            #32aee5,
            #42d0a4,
            #f0ce55,
            #ff9b51,
            #eb6c96
        );
}

.mood-auth-close {
    position: absolute;

    top: 16px;
    right: 18px;

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background:
        #f4f7fb;

    color:
        #64728b;

    font-size: 23px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.mood-auth-brand {
    width: 100%;

    margin:
        2px
        0
        10px;

    display: flex;
    justify-content: center;
}

.mood-auth-brand img {
    width: 210px;
    max-width: 70%;
    height: auto;
}

.mood-auth-header {
    text-align: center;
}

.mood-auth-header h2 {
    margin:
        0
        0
        7px;

    color:
        var(--mood-navy);

    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.mood-auth-header p {
    max-width: 360px;

    margin:
        0
        auto
        18px;

    color:
        var(--mood-muted);

    font-size: 13px;
    line-height: 1.45;
}

.mood-auth-languages {
    margin-bottom: 18px;

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

    gap: 6px;
}

.mood-auth-languages form {
    margin: 0;
    padding: 0;
}

.mood-auth-languages button {
    width: 46px;
    height: 32px;

    border:
        1px solid
        #e2e8f2;

    border-radius: 9px;

    background:
        #ffffff;

    color:
        #58657d;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.mood-auth-languages button.active {
    border-color:
        var(--mood-blue);

    background:
        rgba(23, 105, 255, 0.06);

    color:
        var(--mood-blue);
}

.mood-auth-tabs {
    margin-bottom: 24px;

    padding: 3px;

    border:
        1px solid
        #e5eaf3;

    border-radius: 14px;

    display: grid;
    grid-template-columns:
        1fr
        1fr;

    background:
        #f6f8fc;
}

.mood-auth-tab {
    min-height: 48px;

    border: 0;
    border-radius: 11px;

    background:
        transparent;

    color:
        #3f4b68;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.mood-auth-tab.active {
    background:
        #ffffff;

    color:
        var(--mood-blue);

    box-shadow:
        0 5px 14px
        rgba(30, 70, 120, 0.08);
}

.mood-auth-message {
    margin-bottom: 18px;

    padding:
        11px
        13px;

    border-radius: 10px;

    font-size: 12px;
    line-height: 1.45;
}

.mood-auth-message.success {
    background:
        #edf9f3;

    color:
        #257850;
}

.mood-auth-message.error {
    background:
        #fff1f2;

    color:
        #b43d49;
}

.mood-auth-form label {
    display: block;

    margin:
        0
        0
        8px;

    color:
        var(--mood-navy);

    font-size: 13px;
    font-weight: 700;
}

.mood-auth-field {
    position: relative;

    margin-bottom: 18px;
}

.mood-auth-field > span {
    position: absolute;

    left: 16px;
    top: 50%;

    transform:
        translateY(-50%);

    color:
        #75849f;

    font-size: 15px;
}

.mood-auth-field input {
    width: 100%;
    height: 56px;

    padding:
        0
        16px
        0
        46px;

    border:
        1px solid
        #d8dfeb;

    border-radius: 12px;

    outline: none;

    background:
        #ffffff;

    color:
        var(--mood-navy);

    font-size: 14px;

    box-sizing: border-box;
}

.mood-auth-code-field input {
    padding:
        0
        16px;

    text-align: center;

    letter-spacing:
        0.12em;
}

.mood-auth-field input:focus {
    border-color:
        var(--mood-blue);

    box-shadow:
        0 0 0 4px
        rgba(23, 105, 255, 0.08);
}

.mood-auth-primary {
    position: relative;

    width: 100%;
    height: 54px;

    border: 0;
    border-radius: 12px;

    background:
        var(--mood-gradient);

    color:
        #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 24px
        rgba(23, 105, 255, 0.16);
}

.mood-auth-primary span {
    position: absolute;

    right: 18px;

    font-size: 20px;
}

.mood-code-info {
    margin-bottom: 16px;

    color:
        var(--mood-muted);

    font-size: 12px;
    line-height: 1.5;

    text-align: center;
}

.mood-code-actions {
    margin-top: 14px;

    display: grid;
    grid-template-columns:
        1fr
        1fr;

    gap: 9px;
}

.mood-code-actions form {
    margin: 0;
    padding: 0;
}

.mood-code-actions button {
    width: 100%;
    height: 42px;

    border:
        1px solid
        #dfe6f0;

    border-radius: 9px;

    background:
        #ffffff;

    color:
        #506079;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.mood-register-note {
    margin:
        18px
        0
        0;

    color:
        #7a879c;

    font-size: 10px;
    line-height: 1.5;

    text-align: center;
}

.mood-register-note a {
    color:
        var(--mood-blue);

    text-decoration: none;
}


/* ============================================================
   ANDROID AUTH ONLY
   ============================================================ */

.mood-auth-modal-android {
    display: flex !important;

    padding: 0;

    background:
        #ffffff;
}

.mood-auth-modal-android
.mood-auth-backdrop {
    display: none;
}

.mood-auth-modal-android
.mood-auth-dialog {
    width: min(500px, 100%);

    max-height: 100vh;
    max-height: 100dvh;
    max-height:
        var(
            --home-visible-height,
            100dvh
        );

    border: 0;
    border-radius: 0;

    box-shadow: none;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .mood-landing-shell {
        width:
            min(
                100% - 34px,
                1050px
            );
    }

    .mood-topbar {
        grid-template-columns:
            minmax(210px, 1fr)
            auto
            auto;

        padding:
            0
            20px;
    }

    .mood-brand img {
        width: 220px;
    }

    .mood-nav {
        gap: 22px;
    }

    .mood-language-switcher {
        display: none;
    }

    .mood-hero {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(270px, 0.62fr);

        padding-left: 30px;
        padding-right: 30px;

        gap: 24px;
    }

    .mood-intelligence {
        grid-template-columns:
            300px
            1fr;

        gap: 10px;
    }

    .mood-orbit-stage {
        transform:
            scale(0.90);

        transform-origin:
            center;
    }
}


/* ============================================================
   MOBILE / SMALL TABLET
   ============================================================ */

@media (max-width: 820px) {

    .mood-landing {
        padding-top: 12px;
    }

    .mood-landing-shell {
        width:
            min(
                100% - 24px,
                720px
            );
    }

    .mood-topbar {
        min-height: 68px;

        grid-template-columns:
            1fr
            auto;

        border-radius: 18px;
    }

    .mood-brand img {
        width: 190px;
    }

    .mood-nav {
        display: none;
    }

    .mood-top-actions {
        gap: 8px;
    }

    .mood-header-cta {
        min-width: 112px;
        height: 44px;

        padding:
            0
            14px;

        font-size: 12px;
    }

    .mood-hero {
        min-height: auto;

        padding:
            54px
            18px
            28px;

        grid-template-columns:
            1fr;

        text-align: center;
    }

    .mood-hero-copy {
        max-width: 650px;

        margin: 0 auto;
    }

    .mood-hero-copy h1 {
        font-size:
            clamp(
                43px,
                11vw,
                66px
            );
    }

    .mood-hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .mood-hero-actions {
        justify-content: center;
    }

    .mood-phone {
        width: min(310px, 78vw);
    }

    .mood-benefits {
        grid-template-columns:
            1fr;

        margin-left: 0;
        margin-right: 0;
    }

    .mood-intelligence {
        margin-left: 0;
        margin-right: 0;

        padding:
            30px
            20px;

        grid-template-columns:
            1fr;

        text-align: center;
    }

    .mood-intelligence-copy {
        padding-left: 0;
    }

    .mood-intelligence-copy h2,
    .mood-intelligence-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .mood-orbit-stage {
        min-height: 330px;

        transform:
            scale(0.84);

        transform-origin:
            top
            center;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 560px) {

    .mood-topbar {
        padding:
            0
            14px;
    }

    .mood-brand img {
        width: 156px;
    }

    .mood-header-cta {
        min-width: 98px;

        padding:
            0
            10px;
    }

    .mood-hero {
        padding-top: 42px;
    }

    .mood-hero-copy h1 {
        font-size:
            clamp(
                38px,
                12vw,
                54px
            );
    }

    .mood-hero-copy p {
        font-size: 14px;
    }

    .mood-hero-actions {
        width: 100%;

        flex-direction: column;

        gap: 10px;
    }

    .mood-btn {
        width: 100%;

        box-sizing: border-box;
    }

    .mood-benefit-card {
        padding:
            16px
            17px;
    }

    .mood-intelligence-copy h2 {
        font-size: 38px;
    }

    .mood-orbit-stage {
        min-height: 310px;

        margin:
            0
            -70px;

        transform:
            scale(0.68);

        transform-origin:
            top
            center;
    }

    .mood-auth-modal {
        padding: 10px;
    }

    .mood-auth-dialog {
        max-height:
            calc(
                100vh
                -
                20px
            );

        max-height:
            calc(
                100dvh
                -
                20px
            );

        max-height:
            calc(
                var(
                    --home-visible-height,
                    100dvh
                )
                -
                20px
            );

        padding:
            28px
            20px
            26px;

        border-radius: 20px;
    }

    .mood-auth-brand img {
        width: 180px;
    }

    .mood-code-actions {
        grid-template-columns:
            1fr;
    }
}


/* ============================================================
   16. AUTH MODAL — COMPACT DESKTOP / NO SCROLL
   ============================================================
   Final authoritative layer.
   Reduz vertical height and typography while preserving all
   authentication functionality and the current visual language.
   ============================================================ */

@media (min-width: 701px) {

    html body .mood-auth-modal {
        padding:
            10px
            18px !important;
    }


    html body .mood-auth-dialog {
        width:
            min(
                480px,
                calc(100vw - 36px)
            ) !important;

        max-height:
            calc(
                100vh
                -
                20px
            ) !important;

        max-height:
            calc(
                100dvh
                -
                20px
            ) !important;

        padding:
            18px
            28px
            20px !important;

        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;

        border-radius:
            24px !important;
    }


    html body .mood-auth-dialog::before {
        left:
            34px !important;

        right:
            34px !important;

        height:
            3px !important;
    }


    html body .mood-auth-close {
        top:
            10px !important;

        right:
            12px !important;

        width:
            30px !important;

        height:
            30px !important;

        font-size:
            20px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGO
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-brand {
        margin:
            0
            0
            6px !important;
    }


    html body .mood-auth-brand img {
        width:
            170px !important;

        max-width:
            52% !important;
    }


    /*
    |--------------------------------------------------------------------------
    | TITLE / SUBTITLE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-header h2 {
        margin:
            0
            0
            4px !important;

        font-size:
            21px !important;

        font-weight:
            600 !important;

        line-height:
            1.12 !important;
    }


    html body .mood-auth-header p {
        max-width:
            330px !important;

        margin:
            0
            auto
            10px !important;

        font-size:
            11px !important;

        line-height:
            1.32 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-languages {
        margin-bottom:
            10px !important;

        gap:
            5px !important;
    }


    html body .mood-auth-languages button {
        width:
            40px !important;

        height:
            28px !important;

        border-radius:
            8px !important;

        font-size:
            9px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN / REGISTER TABS
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-tabs {
        margin-bottom:
            14px !important;

        padding:
            3px !important;

        border-radius:
            12px !important;
    }


    html body .mood-auth-tab {
        min-height:
            40px !important;

        border-radius:
            9px !important;

        font-size:
            12px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | MESSAGES
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-message {
        margin-bottom:
            10px !important;

        padding:
            8px
            10px !important;

        font-size:
            10px !important;

        line-height:
            1.3 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | FORM
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-form label {
        margin:
            0
            0
            5px !important;

        font-size:
            11px !important;

        line-height:
            1.15 !important;
    }


    html body .mood-auth-field {
        margin-bottom:
            10px !important;
    }


    html body .mood-auth-field > span {
        left:
            14px !important;

        font-size:
            13px !important;
    }


    html body .mood-auth-field input {
        height:
            44px !important;

        padding:
            0
            14px
            0
            40px !important;

        border-radius:
            10px !important;

        font-size:
            12px !important;
    }


    html body .mood-auth-code-field input {
        padding:
            0
            14px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | PRIMARY BUTTON
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-primary {
        height:
            44px !important;

        border-radius:
            10px !important;

        font-size:
            12px !important;
    }


    html body .mood-auth-primary span {
        right:
            15px !important;

        font-size:
            17px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | CODE INFO / ACTIONS
    |--------------------------------------------------------------------------
    */

    html body .mood-code-info {
        margin-bottom:
            10px !important;

        font-size:
            10px !important;

        line-height:
            1.35 !important;
    }


    html body .mood-code-actions {
        margin-top:
            9px !important;

        gap:
            7px !important;
    }


    html body .mood-code-actions button {
        height:
            36px !important;

        border-radius:
            8px !important;

        font-size:
            9px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | REGISTER TERMS
    |--------------------------------------------------------------------------
    */

    html body .mood-register-note {
        margin:
            10px
            0
            0 !important;

        font-size:
            8px !important;

        line-height:
            1.35 !important;
    }
}


/* ============================================================
   EXTRA COMPACT — SHORT LAPTOP VIEWPORTS
   ============================================================ */

@media (min-width: 701px) and (max-height: 760px) {

    html body .mood-auth-dialog {
        padding:
            14px
            24px
            16px !important;

        border-radius:
            21px !important;
    }


    html body .mood-auth-brand {
        margin-bottom:
            3px !important;
    }


    html body .mood-auth-brand img {
        width:
            148px !important;
    }


    html body .mood-auth-header h2 {
        margin-bottom:
            2px !important;

        font-size:
            19px !important;
    }


    html body .mood-auth-header p {
        margin-bottom:
            7px !important;

        font-size:
            10px !important;
    }


    html body .mood-auth-languages {
        margin-bottom:
            7px !important;
    }


    html body .mood-auth-languages button {
        width:
            37px !important;

        height:
            25px !important;

        font-size:
            8px !important;
    }


    html body .mood-auth-tabs {
        margin-bottom:
            10px !important;
    }


    html body .mood-auth-tab {
        min-height:
            35px !important;

        font-size:
            11px !important;
    }


    html body .mood-auth-form label {
        margin-bottom:
            4px !important;

        font-size:
            10px !important;
    }


    html body .mood-auth-field {
        margin-bottom:
            8px !important;
    }


    html body .mood-auth-field input {
        height:
            39px !important;

        font-size:
            11px !important;
    }


    html body .mood-auth-primary {
        height:
            40px !important;

        font-size:
            11px !important;
    }


    html body .mood-code-actions {
        margin-top:
            7px !important;
    }


    html body .mood-code-actions button {
        height:
            32px !important;
    }


    html body .mood-register-note {
        margin-top:
            7px !important;

        font-size:
            7.5px !important;
    }
}


/* ============================================================
   MOBILE — KEEP SCROLL AVAILABLE BUT HIDE BAR
   ============================================================ */

@media (max-width: 700px) {

    html body .mood-auth-dialog {
        scrollbar-width:
            none !important;

        -ms-overflow-style:
            none !important;
    }


    html body .mood-auth-dialog::-webkit-scrollbar {
        width:
            0 !important;

        height:
            0 !important;

        display:
            none !important;
    }
}


/* ============================================================
   17. AUTH MODAL — REAL COMPACT FIT
   ============================================================
   Objetivo:
   - reduzir realmente os componentes;
   - reduzir fontes, caixas e espaçamentos;
   - fazer o conteúdo caber no modal sem scroll em desktop/laptop;
   - no mobile mantém scroll possível sem barra visível.
   ============================================================ */

@media (min-width: 701px) {

    html body .mood-auth-modal {
        padding: 10px 16px !important;

        overflow: hidden !important;
    }


    html body .mood-auth-dialog {
        width: min(430px, calc(100vw - 32px)) !important;

        max-height: none !important;

        padding:
            10px
            22px
            12px !important;

        overflow: visible !important;

        border-radius: 20px !important;

        box-shadow:
            0 22px 64px
            rgba(7, 22, 63, 0.20) !important;
    }


    html body .mood-auth-dialog::before {
        left: 28px !important;
        right: 28px !important;

        height: 3px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | CLOSE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-close {
        top: 7px !important;
        right: 8px !important;

        width: 27px !important;
        height: 27px !important;

        font-size: 17px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGO
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-brand {
        margin:
            0
            0
            1px !important;
    }


    html body .mood-auth-brand img {
        width: 118px !important;
        max-width: 38% !important;
    }


    /*
    |--------------------------------------------------------------------------
    | TITLE / SUBTITLE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-header h2 {
        margin:
            0
            0
            1px !important;

        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.05 !important;
    }


    html body .mood-auth-header p {
        max-width: 300px !important;

        margin:
            0
            auto
            4px !important;

        font-size: 8.5px !important;
        line-height: 1.18 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-languages {
        margin-bottom: 4px !important;

        gap: 4px !important;
    }


    html body .mood-auth-languages button {
        width: 34px !important;
        height: 22px !important;

        border-radius: 7px !important;

        font-size: 7.5px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | TABS
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-tabs {
        margin-bottom: 6px !important;

        padding: 2px !important;

        border-radius: 9px !important;
    }


    html body .mood-auth-tab {
        min-height: 30px !important;

        border-radius: 7px !important;

        font-size: 9.5px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | MESSAGES
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-message {
        margin-bottom: 5px !important;

        padding:
            5px
            7px !important;

        border-radius: 7px !important;

        font-size: 8px !important;
        line-height: 1.15 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LABELS
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-form label {
        margin:
            0
            0
            2px !important;

        font-size: 8.5px !important;
        font-weight: 600 !important;
        line-height: 1.05 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | INPUT ROWS
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-field {
        margin-bottom: 5px !important;
    }


    html body .mood-auth-field > span {
        left: 11px !important;

        font-size: 10px !important;
    }


    html body .mood-auth-field input {
        height: 32px !important;

        padding:
            0
            11px
            0
            30px !important;

        border-radius: 8px !important;

        font-size: 9.5px !important;
    }


    html body .mood-auth-code-field input {
        padding:
            0
            11px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | PRIMARY BUTTON
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-primary {
        height: 32px !important;

        border-radius: 8px !important;

        font-size: 9.5px !important;
    }


    html body .mood-auth-primary span {
        right: 12px !important;

        font-size: 13px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | CODE INFO / ACTIONS
    |--------------------------------------------------------------------------
    */

    html body .mood-code-info {
        margin-bottom: 5px !important;

        font-size: 8px !important;
        line-height: 1.15 !important;
    }


    html body .mood-code-actions {
        margin-top: 4px !important;

        gap: 5px !important;
    }


    html body .mood-code-actions button {
        height: 27px !important;

        border-radius: 7px !important;

        font-size: 7.5px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | REGISTER TERMS
    |--------------------------------------------------------------------------
    */

    html body .mood-register-note {
        margin:
            4px
            0
            0 !important;

        font-size: 6.5px !important;
        line-height: 1.15 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | ABSOLUTELY NO INTERNAL SCROLLBAR ON DESKTOP
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-dialog {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }


    html body .mood-auth-dialog::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;

        display: none !important;
    }
}


/* ============================================================
   SHORT LAPTOP — EVEN MORE COMPACT
   ============================================================ */

@media (min-width: 701px) and (max-height: 720px) {

    html body .mood-auth-dialog {
        width: min(410px, calc(100vw - 28px)) !important;

        padding:
            8px
            20px
            9px !important;
    }


    html body .mood-auth-brand img {
        width: 102px !important;
    }


    html body .mood-auth-header h2 {
        font-size: 14.5px !important;
    }


    html body .mood-auth-header p {
        margin-bottom: 3px !important;

        font-size: 7.8px !important;
    }


    html body .mood-auth-languages {
        margin-bottom: 3px !important;
    }


    html body .mood-auth-languages button {
        width: 32px !important;
        height: 20px !important;

        font-size: 7px !important;
    }


    html body .mood-auth-tabs {
        margin-bottom: 5px !important;
    }


    html body .mood-auth-tab {
        min-height: 27px !important;

        font-size: 8.8px !important;
    }


    html body .mood-auth-form label {
        font-size: 8px !important;
    }


    html body .mood-auth-field {
        margin-bottom: 4px !important;
    }


    html body .mood-auth-field input {
        height: 29px !important;

        font-size: 9px !important;
    }


    html body .mood-auth-primary {
        height: 29px !important;

        font-size: 9px !important;
    }


    html body .mood-code-actions {
        margin-top: 3px !important;
    }


    html body .mood-code-actions button {
        height: 24px !important;
    }


    html body .mood-register-note {
        margin-top: 3px !important;

        font-size: 6px !important;
    }
}


/* ============================================================
   MOBILE — SCROLL POSSIBLE, BAR HIDDEN
   ============================================================ */

@media (max-width: 700px) {

    html body .mood-auth-dialog {
        overflow-y: auto !important;

        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }


    html body .mood-auth-dialog::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;

        display: none !important;
    }
}


/* ============================================================
   18. AUTH MODAL — BALANCED SIZE
   ============================================================
   Aumenta o modal e os componentes face à V5, mantendo tudo
   suficientemente compacto para caber sem scroll em desktop/laptop.
   ============================================================ */

@media (min-width: 701px) {

    html body .mood-auth-modal {
        padding: 12px 18px !important;
        overflow: hidden !important;
    }

    html body .mood-auth-dialog {
        width: min(500px, calc(100vw - 36px)) !important;

        max-height: none !important;

        padding:
            18px
            30px
            20px !important;

        overflow: visible !important;

        border-radius: 24px !important;

        box-shadow:
            0 28px 78px
            rgba(7, 22, 63, 0.22) !important;
    }

    html body .mood-auth-dialog::before {
        left: 34px !important;
        right: 34px !important;
        height: 3px !important;
    }

    html body .mood-auth-close {
        top: 10px !important;
        right: 12px !important;

        width: 32px !important;
        height: 32px !important;

        font-size: 20px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | LOGO
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-brand {
        margin: 0 0 4px !important;
    }

    html body .mood-auth-brand img {
        width: 170px !important;
        max-width: 50% !important;
    }

    /*
    |--------------------------------------------------------------------------
    | TITLE / SUBTITLE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-header h2 {
        margin: 0 0 3px !important;

        font-size: 23px !important;
        font-weight: 600 !important;
        line-height: 1.08 !important;
    }

    html body .mood-auth-header p {
        max-width: 360px !important;

        margin:
            0
            auto
            10px !important;

        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-languages {
        margin-bottom: 10px !important;
        gap: 6px !important;
    }

    html body .mood-auth-languages button {
        width: 46px !important;
        height: 30px !important;

        border-radius: 8px !important;

        font-size: 9.5px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | TABS
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-tabs {
        margin-bottom: 14px !important;

        padding: 3px !important;

        border-radius: 12px !important;
    }

    html body .mood-auth-tab {
        min-height: 42px !important;

        border-radius: 10px !important;

        font-size: 13px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | MESSAGES
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-message {
        margin-bottom: 10px !important;

        padding:
            8px
            10px !important;

        border-radius: 9px !important;

        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    /*
    |--------------------------------------------------------------------------
    | FORM
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-form label {
        margin: 0 0 5px !important;

        font-size: 11.5px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }

    html body .mood-auth-field {
        margin-bottom: 11px !important;
    }

    html body .mood-auth-field > span {
        left: 15px !important;
        font-size: 13px !important;
    }

    html body .mood-auth-field input {
        height: 48px !important;

        padding:
            0
            15px
            0
            43px !important;

        border-radius: 11px !important;

        font-size: 13px !important;
    }

    html body .mood-auth-code-field input {
        padding: 0 15px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | PRIMARY BUTTON
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-primary {
        height: 46px !important;

        border-radius: 10px !important;

        font-size: 13px !important;
    }

    html body .mood-auth-primary span {
        right: 16px !important;
        font-size: 18px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | CODE INFO / ACTIONS
    |--------------------------------------------------------------------------
    */

    html body .mood-code-info {
        margin-bottom: 10px !important;

        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    html body .mood-code-actions {
        margin-top: 8px !important;
        gap: 8px !important;
    }

    html body .mood-code-actions button {
        height: 34px !important;

        border-radius: 8px !important;

        font-size: 9px !important;
    }

    /*
    |--------------------------------------------------------------------------
    | TERMS
    |--------------------------------------------------------------------------
    */

    html body .mood-register-note {
        margin: 8px 0 0 !important;

        font-size: 7.5px !important;
        line-height: 1.25 !important;
    }

    /*
    |--------------------------------------------------------------------------
    | NO INTERNAL SCROLLBAR ON DESKTOP
    |--------------------------------------------------------------------------
    */

    html body .mood-auth-dialog {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html body .mood-auth-dialog::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
}


/* ============================================================
   SHORTER LAPTOPS — SLIGHTLY COMPACT
   ============================================================ */

@media (min-width: 701px) and (max-height: 720px) {

    html body .mood-auth-dialog {
        width: min(480px, calc(100vw - 32px)) !important;

        padding:
            14px
            27px
            16px !important;
    }

    html body .mood-auth-brand img {
        width: 150px !important;
    }

    html body .mood-auth-header h2 {
        font-size: 20px !important;
    }

    html body .mood-auth-header p {
        margin-bottom: 8px !important;
        font-size: 10.5px !important;
    }

    html body .mood-auth-languages {
        margin-bottom: 8px !important;
    }

    html body .mood-auth-languages button {
        width: 42px !important;
        height: 27px !important;
    }

    html body .mood-auth-tabs {
        margin-bottom: 11px !important;
    }

    html body .mood-auth-tab {
        min-height: 38px !important;
        font-size: 12px !important;
    }

    html body .mood-auth-form label {
        font-size: 10.5px !important;
    }

    html body .mood-auth-field {
        margin-bottom: 9px !important;
    }

    html body .mood-auth-field input {
        height: 43px !important;
        font-size: 12px !important;
    }

    html body .mood-auth-primary {
        height: 42px !important;
        font-size: 12px !important;
    }

    html body .mood-register-note {
        margin-top: 6px !important;
        font-size: 7px !important;
    }
}


/* ============================================================
   MOBILE — SCROLL POSSIBLE, BAR HIDDEN
   ============================================================ */

@media (max-width: 700px) {

    html body .mood-auth-dialog {
        overflow-y: auto !important;

        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html body .mood-auth-dialog::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
}


/* ============================================================
   19. HEADER — SEM MENU CENTRAL
   ============================================================
   Remove o espaço reservado ao antigo menu:
   Porquê HUGiiNE? / Como funciona / Mood
   ============================================================ */

@media (min-width: 821px) {

    .mood-topbar {
        grid-template-columns:
            minmax(220px, 1fr)
            auto !important;
    }

    .mood-brand {
        grid-column: 1 !important;
    }

    .mood-top-actions {
        grid-column: 2 !important;

        justify-self: end !important;
    }
}


/* Segurança: caso exista markup antigo em cache */
.mood-nav {
    display: none !important;
}
/* ============================================================
   HUGiiNE HOME LANDING — CROSS-BROWSER STABILITY V20
   ============================================================
   Chrome / Edge / Firefox / Safari macOS / Chrome Android /
   Safari iPhone & iPad.

   This layer does not change the visual design. It only stabilizes
   viewport sizing, internal scrolling and flex/grid min-size behavior.
   ============================================================ */


/* ------------------------------------------------------------
   GRID / FLEX MIN-SIZE NORMALIZATION
   ------------------------------------------------------------ */

.mood-landing,
.mood-landing-shell,
.mood-topbar,
.mood-brand,
.mood-top-actions,
.mood-hero,
.mood-hero-copy,
.mood-phone-wrap,
.mood-benefits,
.mood-benefit-card,
.mood-intelligence,
.mood-intelligence-copy,
.mood-orbit-stage,
.mood-auth-modal,
.mood-auth-dialog,
.mood-auth-tabs,
.mood-auth-form,
.mood-code-actions {
    min-width: 0;
}


/* ------------------------------------------------------------
   AUTH SCROLL — WEBKIT / FIREFOX
   ------------------------------------------------------------ */

html body
.mood-auth-dialog {
    overscroll-behavior-y: contain;

    -webkit-overflow-scrolling: touch;
}


/* ------------------------------------------------------------
   SAFE MOBILE MODAL GEOMETRY
   home.php updates --home-visible-height from visualViewport.
   These rules ensure final CSS overrides keep using that value.
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    html body
    .mood-auth-modal {
        padding-top:
            max(
                10px,
                env(
                    safe-area-inset-top,
                    0px
                )
            );

        padding-right:
            max(
                10px,
                env(
                    safe-area-inset-right,
                    0px
                )
            );

        padding-bottom:
            max(
                10px,
                env(
                    safe-area-inset-bottom,
                    0px
                )
            );

        padding-left:
            max(
                10px,
                env(
                    safe-area-inset-left,
                    0px
                )
            );
    }


    html body
    .mood-auth-dialog {
        max-height:
            calc(
                100vh
                -
                20px
            ) !important;

        max-height:
            calc(
                100dvh
                -
                20px
            ) !important;

        max-height:
            calc(
                var(
                    --home-visible-height,
                    100dvh
                )
                -
                20px
            ) !important;

        min-height: 0 !important;

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

        overscroll-behavior-y: contain !important;

        -webkit-overflow-scrolling: touch !important;
    }


    html body
    .mood-auth-modal-android
    .mood-auth-dialog {
        max-height: 100vh !important;
        max-height: 100dvh !important;

        max-height:
            var(
                --home-visible-height,
                100dvh
            ) !important;
    }
}


/* ------------------------------------------------------------
   TOUCH TARGETS / IMAGE GEOMETRY
   Prevent WebKit flex shrinking of circular and phone visuals.
   ------------------------------------------------------------ */

.mood-benefit-icon,
.mood-node-icon,
.mood-core,
.mood-phone,
.mood-phone-wrap img {
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

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

    html {
        scroll-behavior: auto;
    }


    .mood-landing *,
    .mood-landing *::before,
    .mood-landing *::after {
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   20. ANDROID AUTH — TOP ANCHOR + KEYBOARD SAFE FIELDS
   ============================================================
   Server-side authoritative fix for the HUGIINE Android WebView.

   - rainbow bar anchored to the top;
   - logo immediately below it;
   - dialog uses the real visible viewport height;
   - Email / 6-digit code stay scrollable above the virtual keyboard;
   - normal browser behaviour is unchanged.
   ============================================================ */

html body .mood-auth-modal-android {
    align-items: flex-start !important;
    justify-content: center !important;

    padding: 0 !important;

    overflow: hidden !important;

    background: #ffffff !important;
}


html body .mood-auth-modal-android .mood-auth-dialog {
    width: 100% !important;

    height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    min-height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    max-height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    margin: 0 !important;

    padding:
        max(
            60px,
            env(
                safe-area-inset-top,
                0px
            )
        )
        28px
        max(
            14px,
            env(
                safe-area-inset-bottom,
                0px
            )
        ) !important;

    box-sizing: border-box !important;

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

    border: 0 !important;
    border-radius: 0 !important;

    background: #ffffff !important;

    box-shadow: none !important;

    scroll-padding-top: 12px !important;
    scroll-padding-bottom:
        max(
            72px,
            calc(
                env(
                    safe-area-inset-bottom,
                    0px
                )
                +
                48px
            )
        ) !important;

    overscroll-behavior-y: contain !important;

    -webkit-overflow-scrolling: touch !important;
}


html body .mood-auth-modal-android .mood-auth-dialog::before {
    top: 0 !important;

    left: 58px !important;
    right: 58px !important;

    height: 4px !important;

    border-radius:
        0
        0
        999px
        999px !important;
}


html body .mood-auth-modal-android .mood-auth-brand {
    margin:
        6px
        0
        4px !important;
}


html body .mood-auth-modal-android .mood-auth-brand img {
    width: 205px !important;
    max-width: 62% !important;

    height: auto !important;

    display: block !important;
}


html body .mood-auth-modal-android .mood-auth-header h2 {
    margin-bottom: 5px !important;
}


html body .mood-auth-modal-android .mood-auth-header p {
    margin-bottom: 13px !important;
}


html body .mood-auth-modal-android .mood-auth-languages {
    margin-bottom: 13px !important;
}


html body .mood-auth-modal-android .mood-auth-tabs {
    margin-bottom: 16px !important;
}


html body .mood-auth-modal-android
.mood-auth-form
input:not([type="hidden"]),
html body .mood-auth-modal-android
.mood-auth-form
textarea,
html body .mood-auth-modal-android
.mood-auth-form
select {
    scroll-margin-top: 24px !important;
    scroll-margin-bottom: 84px !important;
}


@media (max-width: 420px) {

    html body .mood-auth-modal-android .mood-auth-dialog {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }


    html body .mood-auth-modal-android .mood-auth-dialog::before {
        left: 42px !important;
        right: 42px !important;
    }


    html body .mood-auth-modal-android .mood-auth-brand img {
        width: 190px !important;
        max-width: 64% !important;
    }
}

/* ============================================================
   21. ANDROID AUTH — HIDE TITLE, KEEP SPACE + LANGUAGES ABOVE COPY
   ============================================================
   Android app only:
   - "Entre na HUGiiNE" is visually hidden, but its vertical space remains;
   - language buttons sit above the explanatory text;
   - normal browser layout remains unchanged.
   ============================================================ */

html body
.mood-auth-modal-android
.mood-auth-title-android-hidden {
    visibility: hidden !important;

    margin:
        0
        0
        7px
        !important;

    pointer-events: none !important;

    user-select: none !important;
}


html body
.mood-auth-modal-android
.mood-auth-languages-android {
    margin:
        0
        0
        10px
        !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;
}


html body
.mood-auth-modal-android
.mood-auth-header p {
    margin:
        0
        auto
        13px
        !important;
}
/* ============================================================
   22. ANDROID AUTH — FINAL PROTECTED APP LAYER
   ============================================================
   This is the final Android-only authority.

   - logo remains visible;
   - "Entre na HUGiiNE" remains visually hidden;
   - languages remain above the explanatory copy;
   - dialog keeps the real visible viewport height;
   - Email / 6-digit code can scroll above the software keyboard;
   - iPhone/browser rules must never be applied through this class.
   ============================================================ */

html body .mood-auth-modal-android {
    align-items: flex-start !important;
    justify-content: center !important;

    padding: 0 !important;

    overflow: hidden !important;

    background: #ffffff !important;

    touch-action: pan-y !important;
}


html body
.mood-auth-modal-android
.mood-auth-dialog {
    width: 100% !important;

    height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    min-height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    max-height:
        var(
            --home-visible-height,
            100dvh
        ) !important;

    margin: 0 !important;

    padding:
        max(
            60px,
            env(
                safe-area-inset-top,
                0px
            )
        )
        28px
        max(
            14px,
            env(
                safe-area-inset-bottom,
                0px
            )
        ) !important;

    box-sizing: border-box !important;

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

    border: 0 !important;
    border-radius: 0 !important;

    background: #ffffff !important;

    box-shadow: none !important;

    scroll-padding-top: 12px !important;

    scroll-padding-bottom:
        max(
            72px,
            calc(
                env(
                    safe-area-inset-bottom,
                    0px
                )
                +
                48px
            )
        ) !important;

    overscroll-behavior-y: contain !important;

    -webkit-overflow-scrolling: touch !important;

    touch-action: pan-y !important;
}


html body
.mood-auth-modal-android
.mood-auth-brand {
    margin:
        6px
        0
        4px !important;

    display: flex !important;
}


html body
.mood-auth-modal-android
.mood-auth-brand
img {
    width: 205px !important;
    max-width: 62% !important;

    height: auto !important;

    display: block !important;
}


html body
.mood-auth-modal-android
.mood-auth-title-android-hidden {
    visibility: hidden !important;

    margin:
        0
        0
        7px !important;

    pointer-events: none !important;

    user-select: none !important;
}


html body
.mood-auth-modal-android
.mood-auth-languages-android {
    margin:
        0
        0
        10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;
}


html body
.mood-auth-modal-android
.mood-auth-header
p {
    margin:
        0
        auto
        13px !important;
}


html body
.mood-auth-modal-android
.mood-auth-tabs {
    margin-bottom: 16px !important;
}


html body
.mood-auth-modal-android
.mood-auth-form
input:not([type="hidden"]),
html body
.mood-auth-modal-android
.mood-auth-form
textarea,
html body
.mood-auth-modal-android
.mood-auth-form
select {
    scroll-margin-top: 24px !important;
    scroll-margin-bottom: 96px !important;
}


@media (max-width: 420px) {

    html body
    .mood-auth-modal-android
    .mood-auth-dialog {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }


    html body
    .mood-auth-modal-android
    .mood-auth-brand
    img {
        width: 190px !important;
        max-width: 64% !important;
    }
}
