/* A small conversation on the existing cream-and-marine homepage. */
.hero { min-height: calc(100svh - 130px); display: flex; padding-block: clamp(2rem, 6vh, 5rem); }
.hero .hero-grid { width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; }
.hero .hero-copy { width: 100%; }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 0; width: fit-content; margin-top: auto; margin-inline: auto; padding: 1rem 0; color: var(--ink, #284d5c); text-decoration: none; }
.hero-scroll span { font-size: 1.5rem; line-height: 1; }
#learn-more { scroll-margin-top: 100px; }
.nellie-chat { overflow-anchor: none; width: min(100%, 760px); margin-top: 2rem; padding: 1rem 1.25rem 1.25rem; border: 1px solid rgba(40, 77, 92, .12); border-radius: 12px; background: #fffaf1; text-align: left; color: var(--ink, #284d5c); font-family: Manrope, system-ui, sans-serif; }
.nellie-chat [hidden], .nellie-chat[hidden] { display: none !important; }
.nellie-chat button { font: inherit; }
.nellie-chat button, .nellie-chat a { -webkit-tap-highlight-color: transparent; }
.nellie-chat button { cursor: pointer; }
.nellie-chat :is(button, a, [tabindex]):focus-visible { outline: 2px solid #94420f; outline-offset: 3px; }
/* The region never takes focus on arrival; controls retain visible focus rings. */
.nellie-chat .nellie-chat-panel:focus { outline: none; }
/* Reserve the conversation area so arrivals only scroll the log, not the page. */
.nellie-chat-panel { padding: 0; color: inherit; display: flex; flex-direction: column; width: 100%; height: clamp(240px, 32svh, 320px); margin: 0; border: 0; background: transparent; box-shadow: none; }
.nellie-chat-header { display: flex; align-items: center; gap: .7rem; padding: 0; }
.nellie-chat-header h2 { margin: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 750; letter-spacing: -.015em; }
.nellie-chat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; margin-left: auto; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #284d5c; }
.nellie-chat-icon svg { width: 20px; height: 20px; }
.nellie-chat-icon[aria-expanded="true"] .nellie-chat-icon-vertical { display: none; }
.nellie-chat-log { display: flex; flex: 1; flex-direction: column; gap: 1.25rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #c3a878 #fcf6e9; scrollbar-width: thin; padding: .75rem 0 1rem; }
.nellie-chat-message { align-self: flex-start; max-width: min(90%, 52ch); margin: 0; padding: .65rem .9rem; border-radius: 14px 14px 14px 4px; background: #e4edf0; color: #284d5c; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.nellie-chat-topic { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; margin: .25rem 0 0; color: #35586a; font-size: .8rem; font-weight: 700; line-height: 1.5; text-align: center; }
.nellie-chat-topic::before, .nellie-chat-topic::after { content: ""; flex: 1; min-width: 1rem; border-top: 1px solid rgba(40, 77, 92, .18); }
.nellie-chat-message-user { align-self: flex-end; max-width: 90%; border-radius: 14px 14px 4px 14px; background: #f4e7ce; }
.nellie-chat-message:not(.nellie-chat-message-user), .nellie-chat-next { width: min(90%, 52ch); font-size: 1rem; }
.nellie-chat-next { align-self: flex-start; }
.nellie-chat .nellie-chat-typing { display: flex; align-items: center; gap: .3rem; width: fit-content; min-height: 2.9rem; }
.nellie-chat-typing-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nellie-chat-typing-dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; animation: nellie-chat-type 1s ease-in-out infinite; }
.nellie-chat-typing-dot:nth-child(3) { animation-delay: .15s; }
.nellie-chat-typing-dot:nth-child(4) { animation-delay: .3s; }
.nellie-chat:not([data-expanded]) .nellie-chat-typing-dot, .nellie-chat[data-typing-paused] .nellie-chat-typing-dot { animation-play-state: paused; }
@keyframes nellie-chat-type { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.nellie-chat-signup { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .65rem .9rem; border: 1px solid #284d5c; border-radius: 9px; color: #284d5c; text-decoration: none; font-size: .86rem; font-weight: 700; }
.nellie-chat-signup:hover { background: #f4e7ce; }
.nellie-chat-message > p { margin: 0; }
.nellie-chat-actions { flex-shrink: 0; width: min(100%, 52ch); }
.nellie-chat-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.nellie-chat .nellie-chat-choice { min-height: 44px; padding: .5rem .85rem; border: 1px solid #9ec3d3; border-radius: 999px; background: #fffaf1; color: #284d5c; font-size: .85rem; line-height: 1.4; text-align: left; }
.nellie-chat-choice:hover:not(:disabled) { background: #e4edf0; border-color: #284d5c; }
.nellie-chat-choice:disabled { background: #eeedeb; border-color: #d2d2cf; color: #717574; cursor: default; }
.nellie-chat-actions .nellie-chat-next { width: 100%; margin-top: 1rem; }
.nellie-chat-working-label { margin-right: .4rem; font-size: .85rem; }
.nellie-chat-typing-dot { flex-shrink: 0; }
.nellie-chat-attachments { display: grid; gap: .45rem; margin: .75rem 0 0; padding: 0; list-style: none; white-space: normal; }
.nellie-chat-attachment { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border: 1px solid rgba(40, 77, 92, .16); border-radius: 6px; }
.nellie-chat-file-type { flex-shrink: 0; min-width: 3.2em; font-size: .7rem; font-weight: 750; }
.nellie-chat-filename { display: block; font-size: .8rem; line-height: 1.4; }
.nellie-chat-file-state { display: block; font-size: .7rem; color: #35586a; }
.nellie-chat-footer { padding: .75rem 0 .25rem; }
.nellie-chat-footer p { margin: 0; font-size: .75rem; line-height: 1.55; color: #35586a; }
.nellie-chat-footer a { color: inherit; text-underline-offset: 2px; }
.nellie-chat-message { animation: nellie-chat-arrive 240ms ease-out; }
@keyframes nellie-chat-arrive { from { transform: translateY(8px); } to { transform: translateY(0); } }
@media (max-width: 800px) {
  .hero { min-height: calc(100svh - 216px); }
  .nellie-chat { margin-inline: auto; }
  .nellie-chat-panel { height: clamp(384px, 50.4svh, 480px); }
}
@media (prefers-reduced-motion: reduce) {
  .nellie-chat-message { animation: none !important; }
  .nellie-chat-typing-dot { animation: none !important; }
}
