.home-ai-section {
    position: relative;
    padding: clamp(70px, 8vw, 112px) 0;
    overflow: clip;
    background: #eef2ef;
    border-block: 1px solid #dfe5df;
}

.home-ai-section::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    inset: -210px auto auto -130px;
    border-radius: 50%;
    background: rgba(88, 118, 129, .08);
    pointer-events: none;
}

.home-ai-heading {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.home-ai-heading h2 {
    max-width: 680px;
    margin: 9px 0 0;
    color: #26343d;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.26;
}

.home-ai-heading > p {
    max-width: 430px;
    margin: 0;
    color: #68757c;
    line-height: 1.9;
}

.home-ai-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 22px;
}

.ai-translate-card,
.kinda-intro-card {
    min-width: 0;
    border: 1px solid #dde3de;
    border-radius: 27px;
    background: rgba(255, 254, 250, .96);
    box-shadow: 0 16px 42px rgba(38, 52, 61, .07);
}

.ai-translate-card { padding: clamp(22px, 3vw, 34px); }

.ai-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ai-card-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ai-card-title > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #fff;
    background: #4c6973;
}

.ai-card-title h3 { margin: 0 0 3px; color: #26343d; font-size: 1.18rem; }
.ai-card-title p { margin: 0; color: #7a858a; font-size: .83rem; }

.translator-direction {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid #dfe4df;
    border-radius: 14px;
    background: #f1f3ef;
}

.translator-direction button {
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    color: #66737a;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
}

.translator-direction button.active {
    color: #fff;
    background: #4c6973;
    box-shadow: 0 6px 15px rgba(62, 89, 99, .15);
}

.translator-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.translator-pane {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dfe4df;
    border-radius: 18px;
    background: #f9faf7;
}

.translator-pane.result { background: #edf2ef; }

.translator-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    margin-bottom: 9px;
}

.translator-pane-head strong { color: #4c5b63; font-size: .82rem; }
.translator-count { color: #98a19d; font-size: .72rem; direction: ltr; }

.translator-pane textarea {
    display: block;
    width: 100%;
    min-height: 174px;
    padding: 0;
    resize: vertical;
    border: 0;
    outline: 0;
    color: #26343d;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    line-height: 1.9;
}

.translator-output {
    min-height: 174px;
    color: #35474f;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.9;
}

.translator-output.is-placeholder { color: #98a19d; }

.translator-swap {
    align-self: center;
    justify-self: center;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #d8dfda;
    border-radius: 14px;
    color: #4c6973;
    background: #fffefa;
    cursor: pointer;
}

.translator-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.translator-submit,
.kinda-intro-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #3e5963;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.translator-submit:disabled { opacity: .6; cursor: wait; }

.translator-copy {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #d7dfda;
    border-radius: 11px;
    color: #52636a;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
}

.translator-copy:disabled { opacity: .45; cursor: not-allowed; }

.ai-status {
    min-height: 24px;
    margin: 12px 0 0;
    color: #68757c;
    font-size: .79rem;
}

.ai-status.error { color: #9b4f58; }

.ai-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 13px 0 0;
    color: #7d888d;
    font-size: .73rem;
    line-height: 1.65;
}

.kinda-intro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: linear-gradient(150deg, #fffefa, #e9efeb);
}

.kinda-intro-avatar {
    position: relative;
    width: 126px;
    height: 126px;
    margin-bottom: 18px;
    border: 7px solid rgba(255,255,255,.75);
    border-radius: 36px;
    background: #dfe9e2;
    box-shadow: 0 15px 32px rgba(62, 89, 99, .12);
    overflow: hidden;
}

.kinda-intro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kinda-intro-avatar::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    inset: auto 7px 7px auto;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #5f9276;
}

.kinda-intro-card small { color: #6f7b82; font-weight: 650; }
.kinda-intro-card h3 { margin: 6px 0 9px; color: #26343d; font-size: 1.65rem; }
.kinda-intro-card p { margin: 0 0 21px; color: #68757c; line-height: 1.85; }

/* Kinda as the primary homepage assistant */
.home-ai-grid.kinda-only-grid { grid-template-columns: minmax(0, 1fr); }

.kinda-feature-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid #d9e2dc;
    border-radius: 32px;
    background: #fffefa;
    box-shadow: 0 24px 65px rgba(38, 52, 61, .11);
}

.kinda-feature-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    inset: -180px -120px auto auto;
    border-radius: 50%;
    background: rgba(108, 145, 132, .09);
}

.kinda-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
}

.kinda-feature-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid #d7e3dc;
    border-radius: 999px;
    color: #44625c;
    background: #f1f6f2;
    font-size: .78rem;
    font-weight: 700;
}

.kinda-feature-copy h3 {
    max-width: 660px;
    margin: 0 0 16px;
    color: #26343d;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.27;
}

.kinda-feature-copy > p {
    max-width: 650px;
    margin: 0;
    color: #65747a;
    font-size: 1rem;
    line-height: 2;
}

.kinda-feature-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 25px 0 28px;
}

.kinda-feature-points span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #42575e;
    font-size: .86rem;
    font-weight: 650;
}

.kinda-feature-points i { color: #5e8e76; }

.kinda-feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.kinda-feature-actions .kinda-intro-button {
    min-height: 52px;
    padding-inline: 23px;
    box-shadow: 0 12px 25px rgba(62, 89, 99, .18);
}

.kinda-feature-actions > a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid #d6dfda;
    border-radius: 13px;
    color: #53666e;
    background: #fff;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
}

.kinda-feature-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: #87928e;
    font-size: .7rem;
    line-height: 1.6;
}

.kinda-feature-demo {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(28px, 4vw, 52px);
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .2), transparent 15rem),
        linear-gradient(145deg, #36545f, #2d474e 58%, #243c43);
}

.kinda-demo-window {
    width: min(100%, 440px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 25px;
    background: #f8f9f6;
    box-shadow: 0 26px 60px rgba(17, 33, 39, .32);
}

.kinda-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    color: #fff;
    background: #44616b;
}

.kinda-demo-header > div { display: flex; align-items: center; gap: 11px; }
.kinda-demo-header img { width: 50px; height: 50px; border-radius: 16px; object-fit: cover; background: #e8eeea; }
.kinda-demo-header span,
.kinda-demo-header strong,
.kinda-demo-header small { display: block; }
.kinda-demo-header strong { font-size: .94rem; }
.kinda-demo-header small { margin-top: 3px; color: #d9e5df; font-size: .67rem; }
.kinda-demo-header small i { display: inline-block; width: 7px; height: 7px; margin-inline-end: 4px; border-radius: 50%; background: #91d1ab; }

.kinda-demo-messages { min-height: 244px; padding: 21px 17px 13px; background: #f0f3ef; }
.kinda-demo-messages p { width: fit-content; max-width: 88%; margin: 0 0 11px; padding: 11px 13px; border-radius: 15px 15px 5px 15px; font-size: .78rem; line-height: 1.75; }
.kinda-demo-messages .assistant { color: #3e5057; background: #fff; box-shadow: 0 5px 14px rgba(38, 52, 61, .06); }
.kinda-demo-messages .visitor { margin-inline-start: auto; border-radius: 15px 15px 15px 5px; color: #fff; background: #577680; }

.kinda-demo-suggestions { display: flex; gap: 6px; padding: 8px 12px 2px; overflow: hidden; background: #fffefa; }
.kinda-demo-suggestions span { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dce3de; border-radius: 999px; color: #607178; background: #f7f8f5; font-size: .65rem; }

.kinda-demo-input {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin: 9px 12px 13px;
    padding: 7px;
    border: 1px solid #d9e1dc;
    border-radius: 14px;
    color: #8a9591;
    background: #f7f8f5;
    font-size: .68rem;
}

.kinda-demo-input > i,
.kinda-demo-input b { display: grid; height: 34px; place-items: center; border-radius: 10px; }
.kinda-demo-input > i { color: #526b74; background: #e9eeea; }
.kinda-demo-input b { color: #fff; background: #3e5963; }

/* Floating Kinda assistant */
.kinda-launcher {
    position: fixed;
    z-index: 1400;
    inset: auto auto 22px 22px;
    display: flex;
    min-width: 72px;
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    color: #fff;
    background: #3e5963;
    box-shadow: 0 17px 42px rgba(38, 52, 61, .25);
    cursor: pointer;
}

.kinda-launcher img {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    background: #e8eeea;
}

.kinda-launcher span { padding-inline-end: 11px; text-align: right; }
.kinda-launcher strong,
.kinda-launcher small { display: block; }
.kinda-launcher strong { font-size: .9rem; }
.kinda-launcher small { margin-top: 2px; color: #dce6e1; font-size: .68rem; }

.kinda-panel[hidden] { display: none !important; }
.kinda-panel {
    position: fixed;
    z-index: 1450;
    inset: auto auto 106px 22px;
    display: grid;
    width: min(390px, calc(100vw - 28px));
    max-height: min(650px, calc(100dvh - 128px));
    grid-template-rows: auto minmax(150px, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid #dce3de;
    border-radius: 25px;
    background: #fffefa;
    box-shadow: 0 24px 65px rgba(38, 52, 61, .24);
}

.kinda-panel-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    color: #fff;
    background: #3e5963;
}

.kinda-panel-header img {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    object-fit: cover;
    background: #e7eee9;
}

.kinda-panel-heading { min-width: 0; flex: 1; }
.kinda-panel-heading strong,
.kinda-panel-heading span { display: block; }
.kinda-panel-heading strong { font-size: .96rem; }
.kinda-panel-heading span { color: #d8e3de; font-size: .7rem; }

.kinda-panel-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.kinda-close,
.kinda-voice-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.09);
    cursor: pointer;
}

.kinda-voice-toggle.active { color: #27464f; background: #fff; }
.kinda-voice-toggle[hidden] { display: none !important; }

.kinda-messages {
    overflow-y: auto;
    padding: 17px 14px;
    background: #f5f6f2;
    overscroll-behavior: contain;
}

.kinda-message {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 10px;
    padding: 11px 13px;
    border-radius: 15px 15px 5px 15px;
    color: #34474f;
    background: #fff;
    box-shadow: 0 4px 13px rgba(38,52,61,.055);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .86rem;
    line-height: 1.75;
}

.kinda-message.user {
    margin-inline-start: auto;
    border-radius: 15px 15px 15px 5px;
    color: #fff;
    background: #587681;
}

.kinda-message.loading { color: #7a868b; }

.kinda-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 92%;
    margin: -2px 0 12px;
}

.kinda-contact-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #d7e1dc;
    border-radius: 11px;
    color: #3e5963;
    background: #fff;
    text-decoration: none;
    font-size: .73rem;
    font-weight: 700;
}

.kinda-contact-actions a.whatsapp { color: #226746; border-color: #cde5d8; background: #f2faf6; }
.kinda-contact-actions a:hover { border-color: #8fa6a1; transform: translateY(-1px); }

.kinda-quick-prompts {
    display: flex;
    gap: 7px;
    padding: 9px 11px 3px;
    overflow-x: auto;
    background: #fffefa;
    scrollbar-width: none;
}

.kinda-quick-prompts::-webkit-scrollbar { display: none; }
.kinda-quick-prompts button {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 7px 11px;
    border: 1px solid #dce3de;
    border-radius: 999px;
    color: #53676f;
    background: #f7f8f5;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
}

.kinda-form {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 10px 11px 12px;
    background: #fffefa;
}

.kinda-form.no-mic { grid-template-columns: minmax(0, 1fr) 48px; }

.kinda-form input {
    min-width: 0;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d8dfda;
    border-radius: 13px;
    outline: 0;
    color: #26343d;
    background: #f7f8f5;
    font: inherit;
    font-size: .88rem;
}

.kinda-form input:focus { border-color: #6e8b93; box-shadow: 0 0 0 3px rgba(88,118,129,.1); }
.kinda-form button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #3e5963;
    cursor: pointer;
}
.kinda-form button:disabled { opacity: .55; cursor: wait; }
.kinda-form .kinda-mic {
    width: 44px;
    color: #49646e;
    border: 1px solid #d8dfda;
    background: #f0f3ef;
}

.kinda-form .kinda-mic.listening {
    color: #fff;
    border-color: #b64d58;
    background: #b64d58;
    animation: kindaMicPulse 1.15s ease-in-out infinite;
}

.kinda-form .kinda-mic[hidden] { display: none !important; }

@keyframes kindaMicPulse {
    50% { box-shadow: 0 0 0 7px rgba(182, 77, 88, .15); }
}
.kinda-panel-note { margin: -4px 14px 10px; color: #8a9490; font-size: .64rem; line-height: 1.5; }

@media (max-width: 900px) {
    .home-ai-heading { align-items: start; flex-direction: column; }
    .home-ai-grid { grid-template-columns: 1fr; }
    .kinda-intro-card { min-height: 360px; }
    .kinda-feature-card { grid-template-columns: 1fr; }
    .kinda-feature-demo { min-height: 500px; }
}

@media (max-width: 700px) {
    .home-ai-section { padding: 62px 0; }
    .home-ai-heading { margin-bottom: 24px; }
    .home-ai-heading h2 { font-size: clamp(1.9rem, 9vw, 2.55rem); }
    .ai-translate-card { padding: 18px; border-radius: 20px; }
    .ai-card-heading { align-items: stretch; flex-direction: column; }
    .translator-direction { display: grid; grid-template-columns: 1fr 1fr; }
    .translator-workspace { grid-template-columns: 1fr; }
    .translator-swap { transform: rotate(90deg); }
    .translator-pane textarea,
    .translator-output { min-height: 145px; font-size: 16px; }
    .translator-actions { align-items: stretch; flex-direction: column; }
    .translator-submit,
    .translator-copy { width: 100%; }
    .kinda-intro-card { min-height: 330px; padding: 25px 20px; border-radius: 20px; }
    .kinda-feature-card { min-height: 0; border-radius: 22px; }
    .kinda-feature-copy { padding: 30px 20px 28px; }
    .kinda-feature-copy h3 { font-size: clamp(1.85rem, 9vw, 2.45rem); }
    .kinda-feature-copy > p { font-size: .9rem; }
    .kinda-feature-points { grid-template-columns: 1fr; margin-block: 21px 24px; }
    .kinda-feature-actions { align-items: stretch; flex-direction: column; }
    .kinda-feature-actions .kinda-intro-button,
    .kinda-feature-actions > a { width: 100%; }
    .kinda-feature-note { align-items: flex-start; }
    .kinda-feature-demo { min-height: 430px; padding: 24px 14px; }
    .kinda-demo-window { border-radius: 20px; }
    .kinda-demo-messages { min-height: 220px; }
    .kinda-launcher {
        inset: auto auto calc(12px + env(safe-area-inset-bottom)) 12px;
        min-width: 64px;
        min-height: 64px;
        border-radius: 21px;
    }
    .kinda-launcher img { width: 50px; height: 50px; border-radius: 16px; }
    .kinda-launcher span { display: none; }
    .kinda-panel {
        inset: auto 0 0 0;
        width: 100%;
        max-height: min(78dvh, 690px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .kinda-panel-note { margin-bottom: 8px; }
    .kinda-panel-header { padding-inline: 12px; }
    .kinda-close,
    .kinda-voice-toggle { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .kinda-launcher,
    .kinda-panel { scroll-behavior: auto; }
}
