:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #a8b2b8;
  --night: #08131f;
  --night-soft: #0d1c2a;
  --line: rgba(244, 241, 232, 0.14);
  --amber: #ffc85a;
  --sea: #56b6aa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(86, 182, 170, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(255, 200, 90, 0.09), transparent 26rem),
    var(--night);
}

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 200, 90, 0.55);
  border-radius: 50%;
  color: var(--amber);
  font-family: Georgia, serif;
}

.test-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 200, 90, 0.32);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.intro { padding-top: 32px; }

.eyebrow,
.chat-kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: #c7ced1;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.62;
}

.expectations {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.expectations li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8dddd;
  font-size: 0.84rem;
}

.privacy-note {
  max-width: 540px;
  margin-top: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--sea);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.chat-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 28, 42, 0.78);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.chat-heading {
  min-height: 95px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.chat-kicker { margin-bottom: 7px; font-size: 0.65rem; }

.chat-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.018em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 200, 90, 0.1);
}

.status.ready i { background: var(--sea); box-shadow: 0 0 0 4px rgba(86, 182, 170, 0.1); }
.status.error i { background: #ff8073; box-shadow: 0 0 0 4px rgba(255, 128, 115, 0.1); }

.chat-frame {
  height: min(680px, calc(100vh - 190px));
  min-height: 560px;
  padding: 10px;
  background: #f7f6f1;
}

openai-chatkit {
  display: block;
  width: 100%;
  height: 100%;
}

.fallback {
  margin: 0;
  padding: 18px 24px;
  color: #ffb3aa;
  font-size: 0.85rem;
}

footer {
  min-height: 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer [aria-label="heart"] { color: var(--amber); }

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 36px;
  }

  .intro { padding-top: 0; }
  h1 { max-width: 700px; font-size: clamp(3.4rem, 14vw, 6rem); }
  .chat-frame { height: 670px; min-height: 520px; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(100% - 24px, 1180px); }

  .site-header { min-height: 70px; }
  main { padding-top: 28px; gap: 36px; }
  h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .lede { font-size: 1rem; }
  .chat-shell { margin-inline: -4px; border-radius: 18px; }
  .chat-heading { padding: 18px; }
  .chat-heading h2 { font-size: 0.96rem; }
  .status { font-size: 0; }
  .chat-frame { height: 72vh; min-height: 520px; padding: 4px; }
}

