/* L’Oréal-inspired black, white, and warm gold palette. */
:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #66615b;
  --line: #ded9d1;
  --paper: #ffffff;
  --cream: #f7f4ef;
  --gold: #a9803c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
}
button, input { font: inherit; }
.page-wrapper { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.site-header { padding: 45px 0 32px; text-align: center; }
.brand-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -.05em; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.intro { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.7; }

.chat-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr); gap: 22px; align-items: start; }
.chat-panel, .side-panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.chat-panel { padding: 24px; }
.chat-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chat-heading .eyebrow { margin-bottom: 7px; }
.status { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

.chat-window { height: 390px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 22px 2px; scroll-behavior: smooth; }
.message { max-width: 82%; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.message.assistant { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.message-label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.message-body { display: block; white-space: pre-wrap; }

.chat-form { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; flex: 1; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; }
.chat-form input::placeholder { color: #817d78; }
.chat-form button { display: flex; align-items: center; gap: 13px; padding: 0 19px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.chat-form button span { font-size: 19px; font-weight: 400; }
.chat-form button:hover { background: #3b3b3b; }
.chat-form button:disabled { opacity: .6; cursor: wait; }
.chat-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.side-panel { padding: 28px; }
.side-panel h2 { margin-bottom: 20px; }
.suggestions { display: grid; gap: 9px; }
.suggestions button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-size: 12px; font-weight: 600; cursor: pointer; }
.suggestions button:hover { border-color: var(--gold); background: var(--cream); }
.suggestions button span { color: var(--gold); font-size: 18px; }
.official-link { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.official-link span { color: var(--gold); font-size: 17px; text-decoration: none; }
.latest-question { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.latest-question p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

.site-footer { padding: 30px 0 36px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.6; }
.site-footer p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 760px) {
  .page-wrapper { padding: 0 16px; }
  .site-header { padding: 28px 0 24px; }
  .brand-logo { width: 150px; margin-bottom: 20px; }
  .chat-layout { grid-template-columns: 1fr; gap: 16px; }
  .chat-panel, .side-panel { padding: 18px; }
  .chat-window { height: 360px; }
  .message { max-width: 92%; }
  .side-panel { margin-bottom: 12px; }
}
