/* ============================================================
   CHAT (.chat_* - landing chat demo)
   Auto-extracted from index.html (single source of truth).
   Edit here; index.html only links these files.
   ============================================================ */
.chat {
    position: relative;
    padding: 140px 0 160px;
    border-top: 1px solid var(--hairline);
    background: var(--paper);
}
.chat_inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}
.chat_grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: start;
}

.chat_pitch { position: relative; }
.chat_lead {
    font-family: var(--serif);
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 36;
    font-size: clamp(20px, 1.9vw, 24px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 0 0 36px;
}
.chat_lead strong {
    font-weight: 500;
    color: var(--navy);
}
.chat_points {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.chat_point {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;
}
.chat_point_n {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--oxblood);
    padding-top: 4px;
    border-top: 1px solid var(--oxblood);
    text-align: left;
}
.chat_point_h {
    font-family: var(--sans-d);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.3;
}
.chat_point_p {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}
.chat_try {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--hairline);
}
.chat_try em {
    font-style: normal;
    color: var(--oxblood);
}

.chat_demo_wrap { position: relative; }
.lc_chat {
    position: relative;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(187, 13, 41, 0.14) 0%, transparent 60%),
        linear-gradient(135deg, #1B1714 0%, #2a221d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    height: 580px;
    overflow: hidden;
    color: var(--paper-hi);
}
.lc_chat::before {
    content: "";
    position: absolute;
    top: 14px; left: 14px;
    width: 11px; height: 11px;
    border-top: 1.5px solid var(--oxblood);
    border-left: 1.5px solid var(--oxblood);
    pointer-events: none;
    z-index: 2;
}
.lc_chat_header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 16px 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}
.lc_chat_avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--paper-hi);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
}
.lc_chat_meta { flex: 1; min-width: 0; }
.lc_chat_name {
    font-family: var(--sans-d);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--paper-hi);
    letter-spacing: -0.005em;
    line-height: 1.2;
}
.lc_chat_status {
    display: flex; align-items: center; gap: 6px;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 241, 237, 0.55);
}
.lc_chat_dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #7FB069;
    box-shadow: 0 0 0 0 rgba(127, 176, 105, 0.5);
    animation: lc_pulse_green 2s ease-out infinite;
}
@keyframes lc_pulse_green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 176, 105, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(127, 176, 105, 0); }
}

.lc_chat_messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}
.lc_chat_messages::-webkit-scrollbar { width: 6px; }
.lc_chat_messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.lc_msg { display: flex; max-width: 85%; }
.lc_msg--user { align-self: flex-end; justify-content: flex-end; }
.lc_msg--assistant { align-self: flex-start; }
.lc_bubble {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    padding: 11px 15px 12px;
    border-radius: 14px;
    word-wrap: break-word;
}
.lc_msg--assistant .lc_bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--paper-hi);
    border-top-left-radius: 4px;
}
.lc_msg--user .lc_bubble {
    background: var(--paper-hi);
    color: var(--ink);
    border-top-right-radius: 4px;
}
.lc_bubble a {
    color: #9BB8E0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.lc_msg--user .lc_bubble a { color: var(--navy); }
.lc_bubble strong { font-weight: 600; }

.lc_typing .lc_bubble {
    display: inline-flex;
    gap: 5px;
    padding: 14px 16px;
}
.lc_dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(245, 241, 237, 0.5);
    animation: lc_typing_b 1.4s ease-in-out infinite;
}
.lc_dot:nth-child(2) { animation-delay: 0.18s; }
.lc_dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes lc_typing_b {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-3px); opacity: 1; }
}
.lc_caret {
    display: inline-block;
    margin-left: 2px;
    color: #E89882;
    animation: lc_blink 0.9s steps(1) infinite;
}
@keyframes lc_blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.lc_chat_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 22px 4px;
    background: transparent;
}
.lc_chip {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--paper-hi);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 12px 6px;
    cursor: pointer;
    transition: all 0.18s ease-out;
    line-height: 1;
}
.lc_chip:hover {
    background: var(--paper-hi);
    color: var(--ink);
    border-color: var(--paper-hi);
}

.lc_chat_form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}
.lc_chat_input {
    flex: 1;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 11px 16px 12px;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.4;
    color: var(--paper-hi);
    background: rgba(255, 255, 255, 0.04);
    max-height: 120px;
    min-height: 42px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.lc_chat_input:focus { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); }
.lc_chat_input::placeholder { color: rgba(245, 241, 237, 0.45); }
.lc_chat_input:disabled { opacity: 0.5; cursor: not-allowed; }

.lc_chat_send {
    width: 42px; height: 42px;
    border: none;
    background: var(--oxblood);
    color: var(--paper);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s ease-out;
    flex-shrink: 0;
}
.lc_chat_send:hover:not(:disabled) {
    background: var(--oxblood-d);
    transform: scale(1.04);
}
.lc_chat_send:disabled { opacity: 0.4; cursor: not-allowed; }
.lc_chat_send svg { width: 18px; height: 18px; }

.chat_disclaimer {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .chat { padding: 96px 0; }
    .chat_inner { padding: 0 16px; }
    .chat_grid { grid-template-columns: 1fr; gap: 48px; }
    .lc_chat { height: 520px; }
}

