:root {
    --welcome-ink: #25322f;
    --welcome-green: #386b5a;
    --welcome-soft: #f2f6f2;
    --welcome-warm: #fbfaf6;
    --welcome-line: #d9e2dc;
}

.welcome-body [hidden] { display: none !important; }

.welcome-body { background: var(--welcome-warm); color: var(--welcome-ink); min-height: 100vh; overflow-anchor: none; }
.welcome-header { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--welcome-line); display: flex; justify-content: space-between; padding: 14px clamp(18px,4vw,52px); position: sticky; top: 0; z-index: 5; }
.welcome-header nav { align-items: center; display: flex; gap: 18px; }
.welcome-header nav a { color: var(--welcome-ink); font-weight: 700; text-decoration: none; }
.welcome-header nav a:hover { color: var(--welcome-green); text-decoration: underline; }
.welcome-home-link { align-items: center; display: inline-flex; gap: 6px; }
.welcome-home-link svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 17px; }
.welcome-sign-in { border: 1px solid var(--welcome-green); border-radius: 999px; padding: 8px 14px; }
.welcome-shell { display: block; margin: 0 auto; max-width: 900px; min-height: 0; padding: clamp(30px,4vw,48px) clamp(16px,4vw,36px) 72px; place-items: normal; width: 100%; }
.welcome-intro { margin: 0 auto 24px; max-width: 820px; text-align: center; }
.welcome-intro h1 { color: var(--welcome-green); font-size: clamp(2rem,3.4vw,2.7rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.welcome-intro > p { font-size: 1.1rem; line-height: 1.55; margin: 0 auto; max-width: 720px; }
.welcome-intro > p a { color: var(--welcome-green); font-weight: 700; text-underline-offset: 3px; }
.welcome-article-focus { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 7px; margin: -8px auto 14px; max-width: 820px; padding-inline: 4px; }
.welcome-article-focus span { color: #64736e; font-size: .84rem; font-weight: 700; }
.welcome-article-focus a { color: var(--welcome-green); font-size: .94rem; font-weight: 800; text-underline-offset: 3px; }
.welcome-privacy { background: #fff; border: 1px solid var(--welcome-line); border-radius: 14px; margin: 18px auto 0; max-width: 720px; padding: 13px 16px; text-align: left; }
.welcome-privacy summary { cursor: pointer; font-weight: 800; }
.welcome-privacy p { color: #4a5a55; font-size: .94rem; }
.welcome-chat { background: #fff; border: 1px solid var(--welcome-line); border-radius: 24px; box-shadow: 0 18px 55px rgba(37,50,47,.08); overflow: hidden; width: 100%; }
.welcome-messages { padding: clamp(18px,2.5vh,28px) clamp(24px,4vw,56px) 6px; }
.welcome-messages.is-empty { display: none; }
.welcome-message { margin: 0 auto 22px; min-width: 0; width: min(100%,900px); }
.welcome-message .message-label { color: var(--muted); font-size: 11px; font-weight: 800; margin: 0 0 5px 3px; text-transform: uppercase; }
.welcome-message .message-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 4px 16px rgba(42,61,54,.045); padding: 16px 20px; }
.welcome-message.user .message-bubble { background: var(--user); border-color: transparent; }
.welcome-message .message-content { font-size: 17px; line-height: 1.65; max-width: 74ch; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; }
.welcome-message .message-content p { margin: 0 0 .8em; }
.welcome-message .message-content p:last-child { margin-bottom: 0; }
.welcome-message .message-content .tapping-point { line-height: 1.48; margin-bottom: .12em; }
.welcome-message .message-content .tapping-cycle-start { margin-top: .9em; }
.welcome-message .message-content .blank-line { height: .55em; }
.welcome-nudge { background: #fff7dc; border-block: 1px solid #eadca9; color: #5c4d1f; padding: 13px clamp(20px,4vw,38px); }
.welcome-nudge a { color: inherit; font-weight: 800; }
.welcome-signup { align-items: start; background: #edf5f0; border-top: 1px solid var(--welcome-line); display: grid; gap: 16px 28px; grid-template-columns: 1fr 1fr; padding: clamp(18px,3vw,26px); }
.welcome-signup h2 { font-size: 1.45rem; margin: 0 0 7px; }
.welcome-signup p { margin: 0; }
.welcome-signup label { display: block; font-weight: 800; margin-bottom: 6px; }
.welcome-signup-row { display: flex; gap: 8px; }
.welcome-signup input { background: #fff; border: 1px solid #aebdb6; border-radius: 10px; flex: 1; min-width: 0; padding: 11px 12px; }
.welcome-signup .cf-turnstile { margin-top: 12px; }
.welcome-form-status { font-size: .92rem; margin-top: 8px !important; white-space: pre-line; }
.welcome-composer { border-top: 1px solid var(--welcome-line); padding: clamp(18px,3vw,28px); }
.welcome-chat.is-new .welcome-composer { border-top: 0; }
.welcome-human-check { background: #f8f5ea; border: 1px solid #e7dfc6; border-radius: 12px; margin-bottom: 14px; padding: 12px 15px; }
.welcome-human-check p { font-size: .9rem; margin: 0 0 10px; }
.welcome-human-check .welcome-unavailable { color: #8a342d; margin-bottom: 0; }
.welcome-composer textarea { border: 1px solid #acbbb5; border-radius: 14px; box-sizing: border-box; font: inherit; line-height: 1.45; min-height: 88px; padding: 13px 15px; resize: vertical; width: 100%; }
.welcome-composer textarea:focus, .welcome-signup input:focus { border-color: var(--welcome-green); box-shadow: 0 0 0 3px rgba(56,107,90,.15); outline: none; }
.welcome-composer-actions { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-top: 10px; }
.welcome-composer-meta { align-items: flex-start; display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.welcome-composer-actions p { color: #64736e; flex: 1 1 auto; font-size: .86rem; margin: 0; min-width: 0; }
.welcome-ai-disclosure > span { display: block; }
.welcome-submit { flex: 0 0 104px; height: 52px; min-height: 52px; min-width: 104px; padding: 9px 16px; white-space: nowrap; }
.welcome-form-error { color: #9c332b; margin: 10px 0 0; }
.welcome-copy { padding: 0; }

@media (min-width: 681px) {
    .welcome-signup h2 { transform: translateY(-5px); }
}

@media (min-width: 760px) {
    .welcome-intro h1 { white-space: nowrap; }
}

@media (max-width: 680px) {
    .welcome-header { padding: 10px 14px; }
    .welcome-header .brand small { display: none; }
    .welcome-header nav { gap: 10px; }
    .welcome-header nav a { font-size: .9rem; }
    .welcome-shell { padding-inline: 16px; padding-top: 30px; }
    .welcome-intro h1 { font-size: 2.1rem; }
    .welcome-intro > p { font-size: 1.05rem; }
    .welcome-signup { grid-template-columns: 1fr; }
    .welcome-signup-row { flex-direction: column; }
    .welcome-composer-actions { align-items: stretch; flex-direction: column; }
    .welcome-composer-actions .welcome-submit { width: 100%; }
    .welcome-message .message-bubble { border-radius: 15px; padding: 14px; }
    .welcome-message .message-content { font-size: 16px; line-height: 1.6; }
}
