/* HeyStui CI V2, 11 September 2026. Logo colours belong to the supplied asset. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --hs-cream: #f4efe4;
    --hs-ink: #18201c;
    --hs-green: #2c6b4f;
    --hs-lime: #c8e46b;
    --hs-coral: #ef765b;
}

html {
    min-height: 100%;
    background: var(--hs-cream);
}

body {
    margin: 0;
    color: var(--hs-ink);
    background: var(--hs-cream);
    font-family: "Inter", Arial, sans-serif;
    font-optical-sizing: auto;
    font-feature-settings: "liga" 1, "calt" 1;
    line-height: 1.5;
}

.hs-page,
.hs-page * {
    box-sizing: border-box;
}

.hs-page {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    padding: 64px;
    padding-top: max(64px, env(safe-area-inset-top));
    padding-right: max(64px, env(safe-area-inset-right));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    padding-left: max(64px, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
}

.hs-intro .hs-announcement {
    max-width: 640px;
    margin: 40px 0 0;
    color: var(--hs-ink);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .hs-intro .hs-announcement {
        margin-top: 32px;
    }
}

.hs-header {
    flex: 0 0 auto;
}

.hs-logo {
    display: block;
    width: 264px;
    max-width: 100%;
    height: auto;
}

.hs-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding-block: 96px;
}

.hs-heading {
    max-width: 1040px;
    margin: 0;
    color: var(--hs-ink);
    /* Inter's optical-size axis at 32 is its Display design. */
    font-variation-settings: "opsz" 32;
    font-size: clamp(48px, 6.7vw, 96px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hs-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--hs-green);
    font-size: 14px;
    font-weight: 400;
}

.hs-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    min-width: 0;
}

.hs-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hs-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.hs-footer a:hover {
    color: var(--hs-green);
}

.hs-footer a:focus-visible {
    outline: 2px solid var(--hs-green);
    outline-offset: 4px;
    border-radius: 2px;
}

.hs-copyright {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .hs-page {
        padding: 24px;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-right: max(24px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(24px, env(safe-area-inset-left));
    }
    .hs-logo {
        width: 216px;
    }
    .hs-main {
        padding-block: 80px;
    }
    .hs-heading {
        font-size: clamp(40px, 10vw, 72px);
        line-height: 1.08;
    }
    .hs-footer {
        gap: 16px 24px;
    }
}

@media (max-width: 479px) {
    .hs-footer {
        flex-direction: column;
    }
}

/* Home: domain-based language navigation. */
.hs-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.hs-language-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--hs-green);
    border-radius: 999px;
}

.hs-language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--hs-green);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.hs-language-switch a:hover {
    color: var(--hs-ink);
    background: var(--hs-lime);
}

.hs-language-switch a[aria-current="page"] {
    color: var(--hs-cream);
    background: var(--hs-green);
}

.hs-language-switch a:focus-visible {
    outline: 2px solid var(--hs-green);
    outline-offset: 3px;
}

.hs-auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hs-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-logout-form {
    margin: 0;
}

.hs-logout-button {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .hs-auth-actions {
        gap: 8px;
    }

    .hs-auth-user {
        max-width: 125px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .hs-home-header {
        gap: 16px;
    }
    .hs-home-header .hs-logo {
        width: 176px;
    }
    .hs-language-switch {
        gap: 0;
        padding: 0;
    }
    .hs-language-switch a {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    .hs-home-header .hs-logo {
        width: 152px;
    }
}

.hs-onboarding-main {
    width: 100%;
    max-width: 1120px;
    margin: clamp(24px, 5vw, 64px) auto 0;
}

.hs-onboarding-main h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.hs-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.hs-onboarding-steps a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    min-height: 58px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #ccd8cf;
    border-radius: 12px;
    background: #fffdf7;
    color: var(--hs-ink);
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hs-onboarding-steps a[aria-current="step"] {
    border-color: var(--hs-green);
    background: var(--hs-green);
    color: #fff;
}

.hs-onboarding-steps a:focus-visible {
    outline: 3px solid var(--hs-green);
    outline-offset: 3px;
}

.hs-onboarding-step-number {
    display: grid;
    flex: 0 0 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: var(--hs-lime);
    color: var(--hs-ink);
}

.hs-onboarding-steps small,
.hs-onboarding-details small {
    display: block;
    font-weight: 400;
}

.hs-onboarding-panel {
    padding: clamp(16px, 4vw, 36px);
    border: 1px solid #ccd8cf;
    border-radius: 20px;
    background: #fffdf7;
    overflow-wrap: anywhere;
}

.hs-onboarding-panel section + section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ccd8cf;
}

.hs-onboarding-panel :is(textarea, input:not([type="hidden"], [type="checkbox"], [type="radio"]), select) {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.7rem;
    border: 1px solid #aabdb1;
    border-radius: 8px;
    background: #fff;
    color: var(--hs-ink);
    font: inherit;
}

.hs-onboarding-panel textarea {
    resize: vertical;
}

.hs-onboarding-panel :is(textarea, input:not([type="hidden"]), select):focus-visible {
    outline: 2px solid var(--hs-green);
    outline-offset: 2px;
}

.hs-onboarding-panel button {
    padding: 0.7rem 1rem;
    border: 1px solid var(--hs-green);
    border-radius: 8px;
    background: var(--hs-green);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.hs-onboarding-details {
    display: grid;
    gap: 0.75rem;
}

.hs-onboarding-details > div {
    padding: 0.75rem 1rem;
    border: 1px solid #dce4dc;
    border-radius: 10px;
}

.hs-onboarding-details dd {
    margin: 0.25rem 0 0;
}

@media (max-width: 760px) {
    .hs-onboarding-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .hs-onboarding-main {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
}


/* Login: header */

.hs-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hs-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--hs-green);
    border-radius: 12px;
    background: var(--hs-green);
    color: #fff;
    font: 600 14px/1.4 "Inter", Arial, sans-serif;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.hs-login-button:hover {
    background: var(--hs-ink);
    border-color: var(--hs-ink);
    color: #fff;
}

.hs-login-button:focus-visible {
    outline: 3px solid var(--hs-lime);
    outline-offset: 3px;
}

.hs-login-button.hs-account-link {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    text-decoration: none;
}

.hs-home-header .hs-logo {
    width: clamp(152px, 20vw, 200px);
    height: auto;
}

@media (max-width: 479px) {
    .hs-header-actions {
        gap: 8px;
    }

    .hs-login-button {
        min-height: 44px;
        padding-inline: 16px;
    }
}

.hs-plan-channels {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hs-plan-channels legend {
    margin-bottom: 0.25rem;
    padding: 0;
    font-weight: 600;
}

.hs-plan-channel {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    cursor: pointer;
}

.hs-plan-channel input[type="checkbox"] {
    inline-size: 1.15rem;
    block-size: 1.15rem;
    margin: 0;
    accent-color: var(--hs-green);
}

.hs-plan-wait {
    box-sizing: border-box;
    width: min(26rem, calc(100% - 2rem));
    padding: 1.5rem;
    border: 1px solid #ccd8cf;
    border-radius: 16px;
    background: #fffdf7;
    color: var(--hs-ink);
}

.hs-plan-wait p {
    margin: 0;
}

.hs-plan-wait p + p {
    margin-top: 0.5rem;
}

.hs-plan-wait::backdrop {
    background: rgb(14 34 28 / 55%);
}

.hs-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hs-setup-completed h2 {
    margin: 0 0 0.75rem;
}

.hs-setup-completed .hs-account-actions {
    margin-top: 1.25rem;
}

.hs-setup-completed :is(.hs-setup-whatsapp, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--hs-green);
    border-radius: 8px;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.hs-setup-whatsapp {
    background: var(--hs-green);
    color: #fff;
    text-decoration: none;
}

.hs-setup-completed button {
    background: transparent;
    color: var(--hs-green);
}

@media (max-width: 599px) {
    .hs-account-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
