/* Global Typography & Spacing Overrides */
html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

body {
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #2C3333;
}

/* Article Specific Prose */
.prose {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .prose {
        font-size: 1.1rem;
    }
}

.prose p {
    margin-bottom: 1.5em;
    color: #374151;
}

.prose a {
    color: #0D9488;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: 600;
}

.prose a:hover {
    color: #0F766E;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 800;
    line-height: 1.2;
    color: #2C3333;
}

@media (min-width: 768px) {
    .prose h2 {
        font-size: 1.8rem;
    }
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #2C3333;
}

@media (min-width: 768px) {
    .prose h3 {
        font-size: 1.4rem;
    }
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

/* Chatbot Styles */
.chat-widget { 
    position: fixed; 
    bottom: 1rem; 
    right: 1rem; 
    z-index: 50; 
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

@media (min-width: 640px) {
    .chat-widget {
        bottom: 2rem;
        right: 2rem;
    }
}

.chat-window { 
    width: 100%; 
    height: 100vh;
    max-height: 100vh;
    background: white; 
    border-radius: 0;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15); 
    border: 1px solid rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    transform: translateY(100%); 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (min-width: 640px) {
    .chat-window {
        width: 380px;
        height: 600px;
        max-height: 80vh;
        border-radius: 24px;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: translateY(20px);
    }
}

.chat-window.open { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: all; 
}

.chat-messages { 
    flex: 1; 
    padding: 16px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

@media (min-width: 640px) {
    .chat-messages {
        padding: 24px;
    }
}

.message { 
    max-width: 85%; 
    padding: 12px 16px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    animation: fadeIn 0.3s ease-out; 
}

@media (min-width: 640px) {
    .message {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

.message.bot { 
    background: #F3F4F6; 
    color: #1F2937; 
    border-bottom-left-radius: 4px; 
    align-self: flex-start; 
}

.message.user { 
    background: #FF9F87; 
    color: white; 
    border-bottom-right-radius: 4px; 
    align-self: flex-end; 
}

.chat-suggestions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 8px; 
}

.suggestion-chip { 
    background: white; 
    border: 1px solid #E5E7EB; 
    padding: 8px 14px; 
    border-radius: 99px; 
    font-size: 0.8rem; 
    color: #4B5563; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-weight: 500; 
}

@media (min-width: 640px) {
    .suggestion-chip {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.suggestion-chip:hover { 
    border-color: #FF9F87; 
    color: #E67E64; 
    background: #FFF5F2; 
}

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

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    /* Smaller padding on mobile */
    .pt-32 {
        padding-top: 6rem !important;
    }
    
    /* Tighter hero text */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    /* Card adjustments */
    .rounded-3xl {
        border-radius: 1rem;
    }
}
