/* ============================================================
   Finconext – Apple-inspired Design System
   Flat, typographic, maximum whitespace
   ============================================================ */

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #1D1D1F;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ── View switching ──────────────────────────────────────── */
.view { display: none; }
#view-index.active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #FFFFFF;
    animation: viewFadeIn 0.4s ease;
}
#view-chat.active  {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    animation: viewFadeIn 0.35s ease;
}
#view-chat.active.view--compact { height: auto; overflow: visible; }
#view-chat.active.view--compact .container--chat { flex: 0 0 auto; min-height: 0; overflow: visible; }

@keyframes viewFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Landing: Nav ────────────────────────────────────────── */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.lp-nav__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lp-nav__logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.lp-nav__logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #143566;
    letter-spacing: -0.3px;
}

.lp-nav__links {
    display: flex;
    gap: 28px;
}

.lp-nav__links a {
    font-size: 12px;
    font-weight: 400;
    color: #1D1D1F;
    text-decoration: none;
    transition: color 0.2s;
}

.lp-nav__links a:hover {
    color: #6E6E73;
}

/* ── Landing: Hero ───────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 22px 60px;
    background: #F5F5F7;
    text-align: center;
}

.hero__inner {
    max-width: 980px;
}

.hero__label {
    font-size: 21px;
    font-weight: 400;
    color: #1D1D1F;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero__label-logo {
    height: 24px;
    width: auto;
}

.hero__headline {
    font-size: 80px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.003em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero__sub {
    font-size: 19px;
    color: #1D1D1F;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #143566;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 400;
    font-family: inherit;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero__cta:hover {
    opacity: 0.8;
}

/* ── Landing: Advisors Section ───────────────────────────── */
.advisors {
    padding: 100px 22px;
    background: #FFFFFF;
    text-align: center;
}

.advisors__inner {
    max-width: 680px;
    margin: 0 auto;
}

.advisors__label {
    font-size: 14px;
    font-weight: 600;
    color: #6E6E73;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.advisors__headline {
    font-size: 48px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.003em;
    line-height: 1.1;
    margin-bottom: 56px;
}

.agents-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #D2D2D7;
    border-top: 1px solid #D2D2D7;
    border-bottom: 1px solid #D2D2D7;
    text-align: left;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFFFFF;
    border: none;
    padding: 22px 24px;
    text-decoration: none;
    color: #1D1D1F;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 0;
    animation: cardFadeIn 0.5s ease forwards;
}

.agent-card:nth-child(1) { animation-delay: 0.05s; }
.agent-card:nth-child(2) { animation-delay: 0.12s; }
.agent-card:nth-child(3) { animation-delay: 0.19s; }
.agent-card:nth-child(4) { animation-delay: 0.26s; }
.agent-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardFadeIn {
    to { opacity: 1; }
}

@media (hover: hover) {
    .agent-card:hover {
        background: #F5F5F7;
    }
}

.agent-card__dot {
    display: none;
}

.agent-card__logo {
    height: 36px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.agent-card__name {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1D1D1F;
}

.agent-card__arrow {
    color: #6E6E73;
    font-size: 18px;
    transition: transform 0.2s;
}

@media (hover: hover) {
    .agent-card:hover .agent-card__arrow {
        transform: translateX(3px);
        color: #1D1D1F;
    }
}

/* ── Landing: Feature Sections ───────────────────────────── */
.feature {
    padding: 100px 22px;
    text-align: center;
}

.feature--gray {
    background: #F5F5F7;
}

.feature--white {
    background: #FFFFFF;
}

.feature__inner {
    max-width: 680px;
    margin: 0 auto;
}

.feature__label {
    font-size: 14px;
    font-weight: 600;
    color: #6E6E73;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.feature__headline {
    font-size: 48px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.003em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.feature__text {
    font-size: 17px;
    color: #6E6E73;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

.feature__ctas {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feature__btn {
    display: inline-block;
    font-size: 17px;
    font-weight: 400;
    font-family: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.feature__btn--primary {
    background: #1D1D1F;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 980px;
}

.feature__btn--primary:hover {
    opacity: 0.8;
}

.feature__btn--whatsapp {
    background: transparent;
    color: #25D366;
    padding: 12px 24px;
    border-radius: 980px;
    border: 2px solid #25D366;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feature__btn--whatsapp:hover {
    background: #25D366;
    color: #FFFFFF;
}

.feature__btn-icon {
    height: 20px;
    width: auto;
}

.feature__btn--link {
    background: transparent;
    color: #2997FF;
    padding: 0;
    border: none;
}

.feature__btn--link:hover {
    text-decoration: underline;
}

/* ── Landing: FAQ ────────────────────────────────────────── */
.faq {
    padding: 100px 22px;
    background: #FFFFFF;
}

.faq__inner {
    max-width: 680px;
    margin: 0 auto;
}

.faq__label {
    font-size: 14px;
    font-weight: 600;
    color: #6E6E73;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-align: center;
}

.faq__headline {
    font-size: 48px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.003em;
    line-height: 1.1;
    margin-bottom: 48px;
    text-align: center;
}

.faq__item {
    border-top: 1px solid #D2D2D7;
    padding: 20px 0;
}

.faq__item:last-child {
    border-bottom: 1px solid #D2D2D7;
}

.faq__question {
    font-size: 19px;
    font-weight: 600;
    color: #1D1D1F;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    font-size: 28px;
    font-weight: 300;
    color: #6E6E73;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
    content: "−";
    transform: rotate(0deg);
}

.faq__answer {
    font-size: 17px;
    color: #6E6E73;
    line-height: 1.5;
    margin-top: 12px;
}

/* ── Landing: Footer ─────────────────────────────────────── */
.lp-footer {
    background: #F5F5F7;
    border-top: 1px solid #D2D2D7;
    padding: 20px 22px;
}

.lp-footer__inner {
    max-width: 980px;
    margin: 0 auto;
}

.lp-footer__links {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.lp-footer__links a {
    font-size: 12px;
    color: #6E6E73;
    text-decoration: none;
    transition: color 0.2s;
}

.lp-footer__links a:hover {
    color: #1D1D1F;
    text-decoration: underline;
}

.lp-footer__copy {
    font-size: 12px;
    color: #6E6E73;
}

/* ── Chat Header ─────────────────────────────────────────── */
.site-header {
    background: rgba(250, 251, 252, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    font-size: 18px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo__img {
    height: 36px;
    width: auto;
    display: block;
}

.site-logo__text {
    font-size: 22px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.3px;
}

.header-spacer {
    width: 130px;
    flex-shrink: 1;
}

.back-link {
    color: #6E6E73;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.back-link:hover { color: #1D1D1F; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--chat {
    padding-top: 16px;
    padding-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* ── Chat widget ─────────────────────────────────────────── */
.chat-wrapper {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: chatSlideUp 0.4s ease;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Compact mode: wrapper shrinks to content while topic selection is shown */
.chat-wrapper--compact {
    flex: 0 0 auto;
}
.chat-wrapper--compact .chat-messages {
    flex: 0 0 auto;
    min-height: 0;
    overflow-y: visible;
    padding-bottom: 0;
}

.chat-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.chat-titlebar__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-titlebar__logo {
    height: 32px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.chat-titlebar__name {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.2px;
}

.chat-titlebar__back {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    padding: 4px 0;
    flex-shrink: 0;
    transition: color 0.2s;
}
.chat-titlebar__back:hover { color: #1d1d1f; }

/* Messages area */
.chat-messages {
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafbfc;
    flex: 1;
    min-height: 0;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Bubbles */
.chat-bubble-row {
    display: flex;
}
.chat-bubble-row--user      { justify-content: flex-end; padding-bottom: 20px; }
.chat-bubble-row--assistant { justify-content: flex-start; padding-bottom: 5px; animation: bubbleFadeIn 0.3s ease; }

@keyframes bubbleFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.55;
    word-wrap: break-word;
}

.chat-bubble--user {
    background: var(--agent-color, #2563eb);
    color: #ffffff;
    border-bottom-right-radius: 6px;
    white-space: pre-wrap;
}

.chat-bubble--assistant {
    background: #ffffff;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Loading dots */
.chat-bubble--loading { opacity: 0.75; }

.loading-dots { display: inline-flex; gap: 4px; align-items: center; }
.loading-dots span {
    width: 6px; height: 6px;
    background: #c7c7cc;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-5px); }
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 24px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
    border-color: var(--agent-color, #2563eb);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.chat-input:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-send-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 24px;
    background: var(--agent-color, #2563eb);
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.15s;
}
.chat-send-btn:hover:not(:disabled) { opacity: 0.85; transform: scale(1.02); }
.chat-send-btn:active:not(:disabled) { transform: scale(0.97); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Markdown rendering inside assistant bubbles ────────── */
.chat-bubble--assistant { line-height: 1.4; }
.chat-bubble--assistant p { margin: 0 0 2px 0; line-height: 1.4; }
.chat-bubble--assistant p:last-child { margin-bottom: 0; }
.chat-bubble--assistant p:has(> strong) { margin-top: 1em; margin-bottom: 0.4em; }
.chat-bubble--assistant p:first-child:has(> strong) { margin-top: 0; }
.chat-bubble--assistant ul,
.chat-bubble--assistant ol { margin: 1px 0; padding-left: 16px; }
.chat-bubble--assistant li { margin-bottom: 1px; line-height: 1.4; }
.chat-bubble--assistant strong { font-weight: 700; color: #1d1d1f; }
.chat-bubble--assistant em { font-style: italic; }
.chat-bubble--assistant h1,
.chat-bubble--assistant h2,
.chat-bubble--assistant h3 {
    font-size: 16px; font-weight: 700; line-height: 1.4;
    margin: 4px 0 1px; color: #1d1d1f;
}
.chat-bubble--assistant code {
    background: #f5f5f7; border: 1px solid #e8e8ed; border-radius: 4px;
    padding: 1px 4px; font-family: "SF Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px; color: #1d1d1f;
}
.chat-bubble--assistant pre {
    background: #1d1d1f; border-radius: 10px; padding: 10px 12px; margin: 2px 0; overflow-x: auto;
}
.chat-bubble--assistant pre code {
    background: none; border: none; padding: 0; color: #e8e8ed; font-size: 12px; line-height: 1.4;
}
.chat-bubble--assistant blockquote {
    border-left: 3px solid #d2d2d7; margin: 2px 0; padding: 1px 8px;
    color: #86868b; font-style: italic;
}
.chat-bubble--assistant a { color: #2563eb; text-decoration: underline; }
.chat-bubble--assistant a.bubble-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    margin: 10px 0 4px;
    background: var(--agent-color, #2563eb);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 980px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
@media (hover: hover) {
    .chat-bubble--assistant a.bubble-action-btn:hover {
        opacity: 0.9;
        transform: scale(1.02);
    }
}
.chat-bubble--assistant hr { border: none; border-top: 1px solid #f5f5f7; margin: 4px 0; }
.chat-bubble--assistant table { border-collapse: collapse; font-size: 13px; margin: 2px 0; width: 100%; }
.chat-bubble--assistant th,
.chat-bubble--assistant td { border: 1px solid #e8e8ed; padding: 3px 7px; text-align: left; line-height: 1.4; }
.chat-bubble--assistant th { background: #fafafa; font-weight: 600; }

/* Blinking cursor */
.cursor {
    display: inline-block; width: 2px; height: 1em;
    background: #86868b; margin-left: 1px; vertical-align: text-bottom;
    animation: blink 0.75s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Quick Reply Button ─────────────────────────────────── */
.quick-reply-row {
    justify-content: flex-end;
    animation: bubbleFadeIn 0.3s ease;
}

.quick-reply-btn {
    padding: 10px 20px;
    border-radius: 20px 20px 4px 20px;
    border: 2px solid var(--agent-color, #2563eb);
    background: transparent;
    color: var(--agent-color, #2563eb);
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

@media (hover: hover) {
    .quick-reply-btn:hover {
        background: var(--agent-color, #2563eb);
        color: #ffffff;
        transform: scale(1.02);
    }
}

/* Checkmark styling in assistant bubbles */
.check-mark {
    color: var(--agent-color, #2563eb);
    font-weight: 700;
}

/* ── Landing Page (conversion-optimized topic selection) ─── */
.lp {
    align-self: stretch;
    margin: 4px 0;
}

.lp__hero {
    text-align: center;
    padding: 22px 22px 12px;
}

.lp__headline {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    line-height: 1.25;
}

.lp__subline {
    font-size: 14px;
    color: #86868b;
    margin: 0 0 22px;
    line-height: 1.4;
}

.lp__ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp__cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 28px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(10px);
    animation: btnFadeIn 0.35s ease forwards;
}

.lp__cta--primary {
    padding: 16px 20px;
    background: var(--agent-color, #2563eb);
    color: #ffffff;
    border: none;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation-delay: 0.05s;
}

.lp__cta--secondary {
    padding: 14px 20px;
    background: transparent;
    border: 2px solid var(--agent-color, #2563eb);
    color: #5a5a5a;
    font-size: 16px;
    font-weight: 600;
    animation-delay: 0.12s;
}

.lp__cta-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lp__cta--primary .lp__cta-icon { color: #ffffff; }
.lp__cta--secondary .lp__cta-icon { color: var(--agent-color, #2563eb); }

.lp__cta-icon svg { width: 22px; height: 22px; }

.lp__trust {
    font-size: 12px;
    color: #86868b;
    margin-top: 16px;
    line-height: 1.5;
}

.lp__check {
    color: var(--agent-color, #2563eb);
    font-weight: 700;
}

.lp__section {
    padding: 18px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lp__section-title {
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.lp__info-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 28px;
    border: 2px solid var(--agent-color, #2563eb);
    background: transparent;
    color: #5a5a5a;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    opacity: 0;
    transform: translateY(10px);
    animation: btnFadeIn 0.35s ease forwards;
    animation-delay: 0.2s;
}

.lp__btn-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--agent-color, #2563eb);
}
.lp__btn-icon--muted { color: #86868b; }
.lp__btn-icon svg { width: 18px; height: 18px; }

.lp__service-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp__service-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: #5a5a5a;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    opacity: 0;
    transform: translateY(10px);
    animation: btnFadeIn 0.35s ease forwards;
}
.lp__service-btn:nth-child(1) { animation-delay: 0.25s; }
.lp__service-btn:nth-child(2) { animation-delay: 0.30s; }
.lp__service-btn:nth-child(3) { animation-delay: 0.35s; }

@media (hover: hover) {
    .lp__cta--primary:hover { opacity: 0.9; transform: scale(1.01); }
    .lp__cta--secondary:hover {
        background: var(--agent-color, #2563eb);
        color: #ffffff;
    }
    .lp__cta--secondary:hover .lp__cta-icon { color: #ffffff; }
    .lp__info-btn:hover {
        background: var(--agent-color, #2563eb);
        color: #ffffff;
    }
    .lp__info-btn:hover .lp__btn-icon { color: #ffffff; }
    .lp__service-btn:hover { background: #f5f5f7; }
}

/* ── Kategorie-Auswahl (inline in messages) ─────────────── */
.category-selection {
    align-self: stretch;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    animation: cardFadeIn 0.4s ease forwards;
}

.category-selection__question {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.category-selection__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-button-inline {
    padding-bottom: 15px;
    animation: bubbleFadeIn 0.4s ease;
}

.category-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 28px;
    border: 2px solid var(--agent-color, #2563eb);
    background: transparent;
    color: #5a5a5a;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    /* Staggered fade-in */
    opacity: 0;
    transform: translateY(10px);
    animation: btnFadeIn 0.35s ease forwards;
}
.category-btn:nth-child(1)  { animation-delay: 0.03s; }
.category-btn:nth-child(2)  { animation-delay: 0.08s; }
.category-btn:nth-child(3)  { animation-delay: 0.13s; }
.category-btn:nth-child(4)  { animation-delay: 0.18s; }
.category-btn:nth-child(5)  { animation-delay: 0.23s; }
.category-btn:nth-child(6)  { animation-delay: 0.28s; }
.category-btn:nth-child(7)  { animation-delay: 0.33s; }
.category-btn:nth-child(8)  { animation-delay: 0.38s; }
.category-btn:nth-child(9)  { animation-delay: 0.43s; }
.category-btn:nth-child(10) { animation-delay: 0.48s; }
.category-btn:nth-child(11) { animation-delay: 0.53s; }
.category-btn:nth-child(12) { animation-delay: 0.58s; }

@keyframes btnFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.category-btn--with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--agent-color, #2563eb);
}

.category-btn__icon svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .category-btn:hover {
        background: var(--agent-color, #2563eb);
        color: #ffffff;
        transform: scale(1.01);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .category-btn:hover .category-btn__icon {
        color: #ffffff;
    }
}

/* ── Contact buttons (WhatsApp / Rückruf) ────────────────── */
.contact-divider {
    border-top: 1px solid #f5f5f7;
    margin: 14px 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 28px;
    border: 2px solid;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
@media (hover: hover) {
    .contact-btn:hover {
        transform: scale(1.01);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .contact-btn--whatsapp:hover { background: #25D366; color: #ffffff; }
    .contact-btn--callback:hover  { background: #e53e3e; color: #ffffff; }
}

.contact-btn--whatsapp { border-color: #25D366; color: #25D366; }
.contact-btn--callback  { border-color: #e53e3e; color: #e53e3e; }

.contact-btn__logo {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

.contact-btn__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-btn__icon svg {
    height: 22px;
    width: 22px;
}

/* ── Chat Disclaimer ─────────────────────────────────────── */
.chat-disclaimer {
    padding: 8px 16px 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #86868b;
    text-align: center;
    flex-shrink: 0;
}

.chat-disclaimer a {
    color: #86868b;
    text-decoration: underline;
    transition: color 0.2s;
}

.chat-disclaimer a:hover {
    color: #1d1d1f;
}

/* ── PDF document links (below input) ───────────────────── */
.pdf-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    flex-shrink: 0;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--agent-color, #2563eb);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    transition: opacity 0.2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-link__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--agent-color, #2563eb);
}

.pdf-link__icon svg {
    width: 16px;
    height: 16px;
}

@media (hover: hover) {
    .pdf-link:hover {
        opacity: 0.7;
    }
}

/* ── Calculator link (above PDF, below input) ──────────── */
.calculator-link {
    padding: 10px 16px 6px;
    flex-shrink: 0;
}

.calculator-link__btn {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ── Quick contact links (below input) ───────────────────── */
.quick-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px 16px;
    flex-shrink: 0;
}

.quick-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid;
    transition: background 0.2s, color 0.2s;
}

.quick-contact__link--whatsapp { color: #25D366; border-color: #25D366; }
.quick-contact__link--callback { color: #e53e3e; border-color: #e53e3e; }

@media (hover: hover) {
    .quick-contact__link--whatsapp:hover { background: #25D366; color: #fff; }
    .quick-contact__link--callback:hover { background: #e53e3e; color: #fff; }
}

.quick-contact__icon {
    height: 18px;
    width: auto;
}

/* ── Chat Footer ─────────────────────────────────────────── */
.chat-footer {
    text-align: center;
    padding: 10px 24px 12px;
    flex-shrink: 0;
}

.chat-footer__links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.chat-footer__links a {
    font-size: 11px;
    color: #c7c7cc;
    text-decoration: none;
    transition: color 0.2s;
}
.chat-footer__links a:hover { color: #86868b; text-decoration: underline; }

.chat-footer__copy {
    font-size: 11px;
    color: #c7c7cc;
}
.chat-footer__copy a {
    color: #c7c7cc;
    text-decoration: none;
    transition: color 0.2s;
}
.chat-footer__copy a:hover { color: #86868b; text-decoration: underline; }

/* ── Responsive: Tablet ─────────────────────────────────── */
@media (max-width: 768px) {
    /* Landing page tablet */
    .hero__headline { font-size: 56px; }
    .advisors__headline { font-size: 36px; }
    .feature__headline { font-size: 36px; }
    .hero { padding: 80px 22px 50px; }
    .advisors { padding: 80px 22px; }
    .feature { padding: 80px 22px; }
}

/* ── Responsive: Mobile ─────────────────────────────────── */
@media (max-width: 500px) {
    .container { padding: 0 10px; }
    .container--chat { padding-top: 4px; padding-bottom: 4px; }

    /* Landing: Nav mobile */
    .lp-nav__inner { height: 44px; padding: 0 16px; }
    .lp-nav__logo-img { height: 22px; }
    .lp-nav__links { gap: 16px; }
    .lp-nav__links a { font-size: 11px; }

    /* Landing: Hero mobile */
    .hero { min-height: 85vh; padding: 60px 24px 40px; }
    .hero__inner { max-width: 680px; }
    .hero__label { font-size: 17px; }
    .hero__headline { font-size: 32px; }
    .hero__sub { font-size: 17px; margin-bottom: 24px; }
    .hero__cta { font-size: 15px; padding: 11px 22px; }

    /* Landing: Advisors mobile */
    .advisors { padding: 60px 24px; }
    .advisors__label { font-size: 12px; }
    .advisors__headline { font-size: 24px; margin-bottom: 36px; }
    .agent-card { padding: 16px 16px; gap: 14px; }
    .agent-card__logo { height: 28px; max-width: 90px; }
    .agent-card__name { font-size: 15px; }

    /* Landing: Features mobile */
    .feature { padding: 60px 24px; }
    .feature__label { font-size: 12px; }
    .feature__headline { font-size: 24px; }
    .feature__text { font-size: 15px; }
    .feature__ctas { margin-top: 28px; }
    .feature__btn { font-size: 15px; }
    .feature__btn--primary { padding: 11px 22px; }

    /* Landing: FAQ mobile */
    .faq { padding: 60px 24px; }
    .faq__headline { font-size: 24px; margin-bottom: 32px; }
    .faq__question { font-size: 17px; }
    .faq__answer { font-size: 15px; }

    /* Landing: Footer mobile */
    .lp-footer { padding: 16px 24px; }
    .lp-footer__links { gap: 16px; flex-wrap: wrap; }

    /* Chat Header: hide on mobile so advisor logo is first */
    #view-chat .site-header { display: none; }
    .header-spacer { width: 0; }
    .site-logo__img { height: 30px; }
    .site-logo__text { font-size: 19px; }
    .back-link { font-size: 14px; }

    /* Chat compact – fit viewport without cutting off header */
    #view-chat.active { height: 100dvh; }
    #view-chat.active.view--compact {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
    }
    #view-chat.active.view--compact .container--chat {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    .chat-wrapper { border-radius: 10px; }

    /* Titlebar compact */
    .chat-titlebar { padding: 10px 14px; gap: 8px; }
    .chat-titlebar__logo { height: 26px; }
    .chat-titlebar__name { font-size: 15px; }
    .chat-titlebar__back { font-size: 14px; }

    /* Topic & category selection compact */
    .category-selection { padding: 14px 14px; border-radius: 12px; }
    .category-selection__question { font-size: 15px; margin-bottom: 10px; }
    .category-selection__buttons { gap: 6px; }
    .category-btn { padding: 10px 14px; font-size: 14px; border-radius: 22px; border-width: 1.5px; }
    .category-btn__icon svg { width: 17px; height: 17px; }
    .category-btn--with-icon { gap: 8px; }

    /* Calculator link compact */
    .calculator-link { padding: 8px 10px 4px; }
    .calculator-link__btn { padding: 12px 14px; font-size: 15px; }

    /* Chat disclaimer compact */
    .chat-disclaimer { padding: 6px 14px 2px; font-size: 10px; }

    /* PDF documents compact */
    .pdf-documents { padding: 4px 10px; gap: 6px; }
    .pdf-link { font-size: 12px; padding: 3px 6px; }
    .pdf-link__icon svg { width: 14px; height: 14px; }

    /* Quick contact compact */
    .quick-contact { padding: 8px 10px 12px; gap: 10px; }
    .quick-contact__link { font-size: 13px; padding: 6px 14px; }
    .quick-contact__icon { height: 16px; }

    /* Quick reply compact */
    .quick-reply-btn { font-size: 14px; padding: 8px 16px; }

    /* Chat bubbles */
    .chat-bubble { max-width: 92%; font-size: 15px; padding: 10px 14px; }
    .chat-bubble-row--assistant { padding-bottom: 5px; }

    /* Input compact */
    .chat-input-row { padding: 8px 10px; gap: 8px; }
    .chat-input { padding: 8px 14px; font-size: 15px; }
    .chat-send-btn { padding: 8px 16px; font-size: 15px; }

    /* Link button compact */
    .link-button-inline { padding-bottom: 8px; }

    /* Chat Footer compact */
    .chat-footer { padding: 6px 16px 8px; }
    .chat-footer__links { gap: 12px; margin-bottom: 2px; }
    .chat-footer__links a { font-size: 10px; }
    .chat-footer__copy { font-size: 10px; }
}
