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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
header {
    background: #1a1a2e;
    padding: 16px 24px;
}
.header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.3px;
}
.logo-icon {
    font-size: 26px;
}
.logo strong {
    color: #4caf92;
}
.tagline {
    font-size: 13px;
    color: #8899aa;
    flex: 1;
    text-align: right;
}

/* ── Main ── */
main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px 40px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.hero p {
    font-size: 15px;
    color: #556;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Chat container ── */
.chat-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#chat-messages {
    padding: 24px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 320px;
    max-height: 480px;
    overflow-y: auto;
}

/* ── Messages ── */
.message {
    display: flex;
    flex-direction: column;
}
.message.user {
    align-items: flex-end;
}
.message.bot {
    align-items: flex-start;
}

.bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.message.bot .bubble {
    background: #f0f4ff;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
}
.message.user .bubble {
    background: #1a1a2e;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* ── CTA action buttons ── */
.cta-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.cta-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.cta-call {
    background: #1a6eb5;
    color: #fff;
}
.cta-call:hover {
    background: #155fa0;
}
.cta-form {
    background: #4caf92;
    color: #fff;
}
.cta-form:hover {
    background: #3d9e82;
}

/* ── Typing indicator ── */
.typing-indicator {
    padding: 8px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbc;
    animation: bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-7px);
    }
}

/* ── Input row ── */
.chat-input-row {
    display: flex;
    border-top: 1px solid #eef;
    padding: 14px 16px;
    gap: 10px;
}
#user-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid #dde;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
#user-input:focus {
    border-color: #4caf92;
}
#send-btn {
    padding: 11px 22px;
    background: #4caf92;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
#send-btn:hover {
    background: #3d9e82;
}
#send-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Modal ── */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    width: min(420px, 92vw);
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-box h2 {
    font-size: 20px;
    color: #1a1a2e;
}
.modal-box p {
    font-size: 14px;
    color: #556;
}
.modal-box input {
    padding: 10px 14px;
    border: 1.5px solid #dde;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.modal-box input:focus {
    border-color: #4caf92;
}
.modal-btns {
    display: flex;
    gap: 10px;
}
.btn-primary {
    flex: 1;
    padding: 11px;
    background: #4caf92;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-ghost {
    padding: 11px 16px;
    background: transparent;
    color: #889;
    border: 1.5px solid #dde;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #99a;
}

@media (max-width: 480px) {
    .tagline {
        display: none;
    }
    .hero h1 {
        font-size: 22px;
    }
    #chat-messages {
        min-height: 260px;
    }
    .cta-actions {
        flex-direction: column;
    }
}

/* ── Brand bar ── */
.brand-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 24px;
}
.brand-bar span {
    font-size: 12px;
    font-weight: 600;
    color: #889;
    background: #fff;
    border: 1px solid #e0e0e8;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ── How it works ── */
.how-it-works {
    margin: 36px 0 0;
}
.how-it-works h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-align: center;
}
.steps {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaf0;
    padding: 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-text {
    font-size: 14px;
    line-height: 1.6;
    color: #445;
}
.step-text strong {
    color: #1a1a2e;
}

/* ── FAQ ── */
.faq {
    margin: 36px 0 0;
}
.faq h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    text-align: center;
}
details {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "+";
    font-size: 18px;
    color: #4caf92;
}
details[open] summary::after {
    content: "−";
}
details p {
    padding: 0 18px 14px;
    font-size: 14px;
    color: #556;
    line-height: 1.7;
    margin: 0;
}

/* ── SMS opt-in ── */
.sms-optin-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #445;
    cursor: pointer;
    line-height: 1.5;
}
.sms-optin-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.sms-disclaimer {
    font-size: 11px !important;
    color: #99a !important;
    line-height: 1.5;
    margin: 0 !important;
}
