* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.shell { max-width: 1540px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 clamp(20px, 5vw, 78px); }
.topbar { height: 91px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); gap: 12px; }
.wordmark { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; letter-spacing: -.06em; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--brand); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; font-style: italic; line-height: 1; font-size: 23px; }
.preview-pill { padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.live-dot { display: inline-block; background: var(--teal-ink, #4F716B); width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.layout { width: 100%; flex: 1; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(460px, 1.05fr); gap: clamp(42px, 7vw, 120px); align-items: center; padding: clamp(20px, 3vh, 46px) 0; }
.intro { max-width: 480px; align-self: center; }
.eyebrow, .kicker { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow-line { width: 26px; height: 1px; background: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1 { margin: 30px 0 23px; color: var(--brand); font: 500 clamp(52px, 5.4vw, 82px)/.98 Georgia, serif; letter-spacing: -.055em; }
h1 em { font-weight: 400; }
.intro-copy { max-width: 365px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.aside-note { display: flex; gap: 14px; max-width: 340px; margin-top: 44px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); font-size: 13px; line-height: 1.6; }
.spark { color: var(--brand); font-size: 22px; line-height: 1; }
.aside-footer { margin-top: 62px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.aside-footer span { margin: 0 5px; }
.chat { width: 100%; min-height: 500px; max-height: 820px; height: min(74dvh, 820px); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 22px 70px color-mix(in srgb, var(--ink) 8%, transparent); }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 20px 24px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.chat-icon, .welcome-icon { display: grid; place-items: center; flex: none; color: var(--brand); background: var(--sage); border-radius: 14px; }
.chat-icon { width: 42px; height: 42px; font-size: 22px; }
.chat-header h2 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.chat-header p { color: var(--muted); margin-top: 4px; font-size: 12px; }
.clear-button { margin-left: auto; width: 38px; height: 38px; background: transparent; border: 0; border-radius: 50%; color: var(--muted); font-size: 22px; }
.clear-button:hover { background: var(--inset); }
.conversation { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 12px; overscroll-behavior: contain; }
.welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 460px; margin: auto; }
.welcome-icon { width: 45px; height: 45px; border-radius: 15px; font-size: 24px; margin-bottom: 12px; }
.welcome h3 { color: var(--brand); font: 500 30px/1.1 Georgia, serif; letter-spacing: -.035em; margin: 10px 0; }
.welcome > p:not(.kicker) { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 315px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.examples button { color: var(--brand); background: transparent; border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 12px; padding: 9px 10px; font-size: 11px; text-align: left; }
.examples button:hover { background: var(--inset); }
.examples button span { padding-left: 7px; }
.message { max-width: 88%; padding: 15px 17px; margin: 0 0 17px; border-radius: 16px; overflow-wrap: anywhere; }
.message p { font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.message.user { background: var(--sage); margin-left: auto; border-bottom-right-radius: 5px; }
.message.assistant { background: var(--inset); margin-right: auto; border-bottom-left-radius: 5px; }
.message-label { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .13em; margin-bottom: 8px; }
.sources { border-top: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); margin-top: 13px; padding-top: 10px; font-size: 12px; }
.sources summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.source { margin-top: 10px; display: grid; gap: 4px; }
.source span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.feedback { min-height: 21px; padding: 0 28px; color: var(--muted); font-size: 12px; }
.composer { display: flex; align-items: end; gap: 12px; margin: 6px 20px 0; padding: 10px 10px 10px 15px; background: var(--canvas); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 17px; }
.composer:focus-within { border-color: var(--brand); }
.composer textarea { flex: 1; resize: none; min-height: 38px; max-height: 150px; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.35; }
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.send { border: 0; border-radius: 12px; width: 40px; height: 40px; color: var(--on-brand); background: var(--brand); font-size: 23px; line-height: 1; }
.send:disabled { opacity: .4; cursor: not-allowed; }
.chat-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.access-message { margin: 16px 24px 0; padding: 13px; background: var(--inset); border-radius: 12px; font-size: 13px; line-height: 1.5; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .shell { padding: 0 20px; }
  .topbar { height: 69px; }
  .layout { display: block; padding: 34px 0 24px; }
  .intro { max-width: none; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: clamp(43px, 10vw, 60px); margin: 19px 0 14px; }
  h1 br { display: none; }
  .intro-copy { max-width: 510px; font-size: 14px; line-height: 1.6; }
  .aside-note, .aside-footer { display: none; }
  .chat { margin-top: 26px; height: 68dvh; min-height: 540px; max-height: 760px; border-radius: 20px; }
  .conversation { padding: 22px 18px 15px; }
  .page-footer { flex-direction: column; font-size: 10px; }
}
@media (max-width: 390px) {
  .preview-pill { font-size: 9px; padding: 7px 8px; }
  .chat-header { padding: 16px; }
  .chat-header p { font-size: 11px; }
  .chat-foot { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
