/* Minimal, clean, inviting. Not a marketing page. */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background: #fafafa;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Landing page */

.landing h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.lead {
    font-size: 1.15rem;
    color: #3a3a3a;
    margin-bottom: 1rem;
    font-style: italic;
}

.orientation p {
    margin-bottom: 0.8rem;
    color: #4a4a4a;
}

.starters {
    margin: 2rem 0;
}

.starters h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #3a3a3a;
}

.starters ul {
    list-style: none;
    padding: 0;
}

.starter-question {
    background: #f0f4f8;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: #3a3a3a;
    font-style: italic;
}

.consent-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.consent-section h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.consent-section p {
    color: #5a5a5a;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover:not(:disabled) {
    background: #1d4ed8;
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Chat interface */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.chat-header {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.chat-header h1 {
    font-size: 1.1rem;
    font-weight: 500;
}

.chat-header a {
    color: inherit;
    text-decoration: none;
}

.message-display {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.user-message {
    background: #e8f0fe;
    margin-left: 2rem;
}

.assistant-message {
    background: #f5f5f5;
    margin-right: 2rem;
}

.system-message {
    background: transparent;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

.message-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error-banner {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.chat-form {
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
}

.input-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.input-row textarea {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    line-height: 1.4;
}

.input-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.input-row button {
    padding: 0.6rem 1.2rem;
    flex-shrink: 0;
}

/* Feedback form */

.feedback-section {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e0e0e0;
}

.feedback-section summary {
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.4rem 0;
}

.feedback-form {
    margin-top: 0.8rem;
}

.feedback-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a4a4a;
    margin-top: 0.6rem;
    margin-bottom: 0.25rem;
}

.feedback-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    line-height: 1.4;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.feedback-submit {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Further reading */

.further-reading {
    margin: 1.5rem 0;
}

.further-reading .note {
    font-size: 0.9rem;
    color: #5a5a5a;
}

.further-reading a {
    color: #2563eb;
    text-decoration: none;
}

.further-reading a:hover {
    text-decoration: underline;
}
