:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6b6b68;
  --paper: #f8f8f6;
  --surface: #ffffff;
  --line: #dfdfda;
  --soft: #f0f0ec;
  --danger: #b3261e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { background: linear-gradient(145deg, #fff 0%, var(--paper) 67%, #eeeeea 100%); color: var(--ink); margin: 0; min-height: 100vh; }
header, footer { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin: auto; max-width: 1120px; padding: 28px 32px; }
.brand { align-items: center; color: var(--ink); display: flex; font-size: 28px; font-weight: 760; gap: 9px; letter-spacing: -1.7px; text-decoration: none; }
.brand-mark { background: #f3f3f1; border: 1px solid #d7d7d2; border-radius: 50%; filter: grayscale(1) contrast(1.1); height: 40px; object-fit: cover; object-position: center; width: 40px; }
.dot { margin-left: -9px; }
.pill { background: var(--soft); border: 1px solid #d9d9d4; border-radius: 999px; color: #40403d; font-size: 12px; font-weight: 650; padding: 8px 13px; }
main { margin: 58px auto 78px; max-width: 940px; padding: 0 32px; }
.eyebrow, .step { color: #545450; font-size: 10px; font-weight: 780; letter-spacing: 1.9px; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 720; letter-spacing: -3px; line-height: 1.02; margin: 0 0 24px; max-width: 800px; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.intro { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 620px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px #1717170d; margin: 38px 0; max-width: 720px; padding: 31px; }
.legal-card { max-width: 840px; }
.legal-card h2 { border-top: 1px solid var(--line); font-size: 22px; margin: 34px 0 12px; padding-top: 30px; }
.legal-card h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.legal-card h3 { font-size: 15px; margin: 24px 0 4px; }
.legal-card ul { color: var(--muted); margin: 11px 0 18px; padding-left: 22px; }
.legal-card li { margin: 7px 0; }
h2 { font-size: 25px; letter-spacing: -.8px; margin: 0 0 13px; }
p, li { color: var(--muted); line-height: 1.7; }
a { color: var(--ink); text-underline-offset: 3px; }
button, .button { background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; color: #fff; cursor: pointer; display: inline-block; font-size: 15px; font-weight: 700; padding: 14px 22px; text-decoration: none; }
button:hover, .button:hover { background: #000; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a7a7a0; outline-offset: 4px; }
.retry { background: #fff; border-color: #c9c9c4; color: var(--ink); margin-top: 12px; }
.retry:hover { background: var(--soft); }
.consent { align-items: flex-start; display: flex; font-size: 14px; gap: 12px; line-height: 1.6; margin: 24px 0; }
.consent input { accent-color: var(--ink); flex: none; height: 18px; margin-top: 4px; width: 18px; }
.error { color: var(--danger); font-size: 14px; font-weight: 650; line-height: 1.5; margin: 20px 0 0; min-height: 0; }
.notice { background: var(--soft); border-radius: 12px; color: #484844; font-size: 13px; line-height: 1.6; margin: 20px 0 0; padding: 15px 18px; }
.cookie-consent { align-items: center; background: #fff; border: 1px solid #deded9; border-radius: 13px; bottom: 28px; box-shadow: 0 18px 48px #16161620; display: flex; gap: 28px; justify-content: space-between; left: 50%; max-width: 920px; padding: 22px 26px; position: fixed; transform: translateX(-50%); width: calc(100% - 42px); z-index: 20; }
.cookie-consent[hidden] { display: none; }
.cookie-consent-copy { max-width: 600px; }
.cookie-consent-copy p { color: #5f5f5b; font-size: 14px; line-height: 1.55; margin: 0; }
.cookie-consent-copy strong { color: var(--ink); font-weight: 760; }
.cookie-text-button { background: transparent; border: 0; border-radius: 0; color: #595954; font: inherit; font-weight: 500; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.cookie-text-button:hover { background: transparent; color: #000; }
.cookie-consent-actions { align-items: center; display: flex; flex: none; gap: 10px; }
.cookie-consent-actions button, .cookie-save { border-radius: 999px; font-size: 14px; padding: 12px 18px; }
.cookie-reject { background: #fff; border: 1px solid #d9d9d4; color: var(--ink); }
.cookie-reject:hover { background: #f5f5f2; }
.cookie-accept, .cookie-save { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.cookie-accept:hover, .cookie-save:hover { background: #000; }
.cookie-details { border-top: 1px solid var(--line); display: grid; gap: 14px; margin-top: 17px; padding-top: 15px; }
.cookie-details > div { display: grid; gap: 3px; }
.cookie-details strong { font-size: 13px; }
.cookie-details span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.cookie-setting { align-items: center; display: flex !important; gap: 18px !important; justify-content: space-between; }
.cookie-switch { cursor: pointer; flex: none; height: 26px; position: relative; width: 45px; }
.cookie-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.cookie-switch > span { background: #c7c7c1; border-radius: 999px; display: block; height: 26px; transition: background .16s ease; width: 45px; }
.cookie-switch > span::after { background: #fff; border-radius: 50%; content: ''; height: 20px; left: 3px; position: absolute; top: 3px; transition: transform .16s ease; width: 20px; }
.cookie-switch input:checked + span { background: var(--ink); }
.cookie-switch input:checked + span::after { transform: translateX(19px); }
.cookie-switch input:focus-visible + span { outline: 3px solid #a7a7a0; outline-offset: 3px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.features { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 50px; }
.features span { font-size: 24px; }
.features h3 { font-size: 15px; margin: 13px 0 7px; }
.features p { font-size: 13px; margin: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.demo-banner { background: var(--soft); border-radius: 12px; color: #464642; font-size: 13px; line-height: 1.55; margin: 24px 0; padding: 12px 16px; }
.chat { background: #eeeeeb; border: 1px solid var(--line); border-radius: 20px; max-width: 680px; overflow: hidden; }
.chat-head { align-items: center; background: #fff; display: flex; gap: 12px; padding: 16px 20px; }
.chat-head small { color: var(--muted); display: block; margin-top: 3px; }
.messages { display: flex; flex-direction: column; gap: 15px; max-height: 460px; min-height: 240px; overflow: auto; padding: 20px; }
.bubble { background: #fff; border-radius: 15px; font-size: 14px; line-height: 1.65; max-width: 90%; overflow-wrap: anywhere; padding: 13px 16px; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: #dcdcd7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips button { background: #fff; border-color: var(--line); color: var(--ink); font-size: 12px; padding: 10px 14px; }
.composer { background: #fff; border-top: 1px solid var(--line); display: flex; gap: 10px; padding: 14px; }
.composer input { border: 1px solid var(--line); border-radius: 10px; flex: 1; font: inherit; font-size: 14px; min-width: 0; padding: 12px; }

body.connection-complete { background: #fff; color: #111; min-height: 100vh; }
body.connection-complete header, body.connection-complete footer { display: none; }
body.connection-complete main { margin: 0; max-width: none; padding: 13px; }
.close-tab { color: #111; font-family: Georgia, serif; font-size: 16px; margin: 0; }

@media (max-width: 620px) {
  header, footer { padding: 23px; }
  .brand { font-size: 25px; }
  .brand-mark { height: 36px; width: 36px; }
  main { margin-top: 35px; padding: 0 23px; }
  h1 { font-size: 39px; letter-spacing: -2.2px; }
  .intro { font-size: 16px; }
  .card { padding: 24px; }
  .features { grid-template-columns: 1fr; gap: 23px; }
  footer { align-items: flex-start; flex-direction: column; }
  .composer button { font-size: 13px; padding: 12px; }
  .cookie-consent { align-items: stretch; bottom: 14px; flex-direction: column; gap: 18px; padding: 20px; width: calc(100% - 28px); }
  .cookie-consent-actions { justify-content: flex-end; }
}
