:root {
  color-scheme: light;
  --navy: #102a43;
  --blue: #1363df;
  --cyan: #43b8ff;
  --green: #128c7e;
  --ink: #172333;
  --muted: #66778b;
  --line: #dbe5ef;
  --surface: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(67,184,255,.20), transparent 28rem),
    linear-gradient(135deg, #edf6ff 0%, #f8fbff 45%, #eef3f8 100%);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr minmax(330px, 460px);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: 48px 0;
}

.brand { max-width: 590px; }
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(19,99,223,.22);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 20px 0 18px;
  color: var(--navy);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.brand > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.trust {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
  font-size: .95rem;
}
.trust li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 900; }

.chat-card {
  overflow: hidden;
  border: 1px solid rgba(16,42,67,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(16,42,67,.18);
}

.chat-header {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 18px 20px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #164d80);
}
.chat-header div { display: grid; gap: 2px; }
.chat-header small { opacity: .76; }
.status-dot { width: 11px; height: 11px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: #28d17c; }

.messages {
  min-height: 330px;
  max-height: 420px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(#f7fafc, #f2f7fb);
}
.message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.message.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: white; }
.message.user { align-self: flex-end; border-bottom-right-radius: 5px; color: white; background: var(--blue); }
.message.error { color: #8a1923; background: #fff0f1; }

.composer { display: flex; gap: 9px; padding: 15px; border-top: 1px solid var(--line); }
.composer input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #c9d6e2;
  border-radius: 12px;
  font: inherit;
}
.composer input:focus { border-color: var(--blue); outline: 3px solid rgba(19,99,223,.14); }
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.composer button { color: white; background: var(--blue); }

.handoff { padding: 18px; border-top: 1px solid var(--line); }
.handoff h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.1rem; }
.handoff pre { max-height: 180px; overflow: auto; margin: 0 0 14px; padding: 12px; border-radius: 12px; background: #f5f8fb; font: .82rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.whatsapp { width: 100%; color: white; background: var(--green); }
.restart { width: 100%; margin-top: 8px; color: var(--navy); background: transparent; }
.privacy { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.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: 820px) {
  .shell { grid-template-columns: 1fr; padding: 28px 0; }
  .brand { text-align: center; margin: auto; }
  .trust { text-align: left; width: fit-content; margin-inline: auto; }
  h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
