* {
    box-sizing: border-box;
}

:root {
    --forest: #075b43;
    --emerald: #0b9068;
    --mint: #eaf5ee;
    --ink: #17392f;
    --muted: #72867c;
    --line: #dce9e1;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    color: var(--ink);
    background: #f2f7f3;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-shell {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 8% 18%, rgba(205, 235, 216, .72), transparent 34%),
        radial-gradient(ellipse at 94% 76%, rgba(211, 237, 220, .72), transparent 34%),
        linear-gradient(135deg, #fbfdfb 0%, #f0f7f2 53%, #f8fbf8 100%);
}

.background-pattern {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(7, 91, 67, .075);
    border-radius: 50%;
}

.pattern-left {
    width: 390px;
    height: 390px;
    top: 17%;
    left: -250px;
    box-shadow: 0 0 0 24px rgba(7, 91, 67, .018),
                0 0 0 48px rgba(7, 91, 67, .014);
}

.pattern-right {
    width: 470px;
    height: 470px;
    right: -300px;
    bottom: -210px;
    box-shadow: 0 0 0 28px rgba(7, 91, 67, .018),
                0 0 0 56px rgba(7, 91, 67, .014);
}

.site-header {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 0 0 76px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(210, 229, 216, .9);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 4px 24px rgba(20, 70, 45, .035);
    backdrop-filter: blur(14px);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #d7e9de;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #0c8a64, #064a38);
    box-shadow: 0 5px 14px rgba(7, 91, 67, .15);
}

.brand-emblem span {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-eyebrow {
    color: var(--emerald);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
}

.brand-copy h1 {
    margin: 0;
    color: var(--forest);
    font-size: 17px;
    font-weight: 760;
    letter-spacing: -.025em;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #d9e9df;
    border-radius: 999px;
    color: #47735c;
    background: #fbfefc;
    font-size: 11px;
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1baa71;
    box-shadow: 0 0 0 4px rgba(27, 170, 113, .13);
}

.content-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    width: 100%;
    padding: 14px 18px 8px;
}

.intro {
    flex: 0 0 auto;
    margin: 0 0 12px;
    text-align: center;
}

.intro-kicker {
    color: var(--emerald);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .18em;
}

.intro h2 {
    margin: 5px 0 3px;
    color: var(--forest);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.intro p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.chat-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    width: min(540px, 100%);
    overflow: visible;
    border: 1px solid #dce9e1;
    border-radius: 25px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 22px 68px rgba(9, 68, 44, .12);
}

.chat-loading {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.chat-loading strong {
    color: var(--forest);
    font-size: 13px;
}

.chat-loading span:last-child {
    color: #899b91;
    font-size: 11px;
}

.loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #dceee2;
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #84978c;
    font-size: 10px;
}

.footer-divider {
    color: #aabbb0;
}

/* The shields visually cover the WhatBot close control and block pointer input. */
.close-shield {
    position: fixed;
    z-index: 2147483001;
    pointer-events: auto;
}

.close-shield-mobile {
    display: none;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    border-radius: 0 0 0 13px;
    background: #fff;
}

.close-shield-desktop {
    right: 16px;
    bottom: 16px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f5faf6;
    box-shadow: 0 0 0 8px rgba(245, 250, 246, .7);
}

@media (max-width: 700px) {
    body {
        background: #fff;
    }

    .site-shell {
        background: #fff;
    }

    .background-pattern,
    .site-header,
    .intro,
    .site-footer {
        display: none;
    }

    .content-area {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .chat-stage {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        overflow: visible;
    }

    .close-shield-mobile {
        display: block;
    }

    .close-shield-desktop {
        display: none;
    }
}

@media (min-width: 701px) and (max-height: 640px) {
    .site-header {
        flex-basis: 58px;
    }

    .content-area {
        padding-top: 7px;
    }

    .intro {
        margin-bottom: 6px;
    }

    .site-footer {
        flex-basis: 20px;
    }
}
