:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #152238;
  background: #edf4f7;
  --a: #18a49e;
  --b: #5b61dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(24, 164, 158, 0.14),
      transparent 28%
    ),
    radial-gradient(circle at 90% 0, rgba(91, 97, 220, 0.13), transparent 25%),
    #edf4f7;
  color: #152238;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px max(24px, 7vw);
}
.brand {
  display: block;
  width: clamp(138px, 12vw, 184px);
  line-height: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.nav nav {
  display: flex;
  gap: 24px;
}
.nav nav a {
  color: #526174;
  text-decoration: none;
  font-weight: 700;
}
.nav-portal {
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 10px 24px rgba(40, 111, 151, 0.2);
  text-decoration: none;
  font-weight: 850;
}
main {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.hero {
  padding: 90px 0 100px;
  max-width: 900px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
  color: var(--a);
}
h1 {
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
h2 {
  letter-spacing: -0.03em;
}
.hero p,
.feature-showcase p {
  font-size: 20px;
  line-height: 1.6;
  color: #647386;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}
.button {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(60, 80, 100, 0.12);
  color: #233044;
  text-decoration: none;
  font-weight: 850;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 14px 30px rgba(40, 111, 151, 0.22);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 90px;
}
.grid article,
.feature-showcase {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(32, 64, 90, 0.09);
  border-radius: 25px;
  padding: 28px;
}
.grid article p {
  color: #697789;
  line-height: 1.55;
}
.feature-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 22px;
  padding: 45px;
}
.feature-showcase.reverse > div:first-child {
  order: 2;
}
.mock-replay {
  height: 220px;
  position: relative;
  border-top: 4px solid rgba(24, 164, 158, 0.2);
  display: flex;
  justify-content: space-around;
  padding-top: 40px;
}
.mock-replay:before {
  content: "";
  position: absolute;
  left: 44%;
  top: -15px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--a);
  box-shadow: 0 0 0 8px rgba(24, 164, 158, 0.18);
}
.mock-replay span {
  height: max-content;
  padding: 10px;
  border-radius: 12px;
  background: #f1f7f8;
  font-size: 12px;
  font-weight: 800;
}
.passport {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, #112b3d, #17445a);
  color: #fff;
  box-shadow: 0 20px 40px rgba(17, 43, 61, 0.2);
}
.passport b,
.passport small {
  display: block;
  margin-top: 10px;
}
.passport div {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.passport i {
  height: 16px;
  flex: 1;
  border-radius: 5px;
  background: linear-gradient(90deg, #5de1d4, #778cff);
}
.passport i.empty {
  background: rgba(255, 255, 255, 0.15);
}
footer {
  text-align: center;
  padding: 45px;
  color: #738092;
}
.footer-link {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.faq-section {
  margin: 28px 0 90px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(32, 64, 90, 0.09);
}
.faq-section h2 { font-size: clamp(30px, 4vw, 46px); }
.faq-section details { padding: 18px 0; border-top: 1px solid #d8e2e8; }
.faq-section summary { color: #152238; font-size: 1.05rem; font-weight: 850; cursor: pointer; }
.faq-section p { max-width: 820px; margin-bottom: 0; color: #647386; line-height: 1.65; }
.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #c8d8e0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(21, 34, 56, 0.28);
}
.consent-banner[hidden] { display: none; }
.consent-banner strong { display: block; margin-bottom: 5px; font-size: 1.05rem; }
.consent-banner p { max-width: 640px; margin: 0 0 5px; color: #526174; line-height: 1.5; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
@media (max-width: 800px) {
  .grid,
  .feature-showcase {
    grid-template-columns: 1fr;
  }
  .feature-showcase.reverse > div:first-child {
    order: initial;
  }
  .nav nav {
    display: none;
  }
  .nav-portal {
    padding: 9px 13px;
    font-size: 14px;
  }
  .hero {
    padding-top: 60px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .faq-section { padding: 28px 22px; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { flex-wrap: wrap; }
}
.chat-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(21, 34, 56, 0.25);
  cursor: pointer;
  z-index: 10;
}
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 118px));
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(21, 34, 56, 0.25);
  padding: 18px;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.chat-panel header {
  position: sticky;
  top: -18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -18px -18px 0;
  padding: 16px 18px 10px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.chat-panel header button {
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
}
.chat-panel input,
.chat-panel textarea {
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
}
.chat-panel textarea {
  min-height: 80px;
}
.chat-field {
  display: block;
  margin-top: 8px;
  color: #34445a;
  font-size: .82rem;
  font-weight: 700;
}
.chat-panel textarea:focus,
.chat-panel input:focus {
  outline: 3px solid rgba(88, 98, 223, .2);
  border-color: var(--b);
}
.chat-panel form button {
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--b);
  color: #fff;
  font-weight: 800;
}
.support-options,
.chat-reply-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.support-options button,
.chat-reply-actions button {
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: var(--b);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.chat-reply-actions button.secondary {
  background: #eef2ff;
  color: #344a9f;
}
.chat-reply-actions .transcript-action {
  font-size: .78rem;
}
.knowledge-panel {
  margin: 10px 0;
  border: 1px solid #dbe5ea;
  border-radius: 10px;
  padding: 9px;
}
.knowledge-panel summary { cursor: pointer; font-weight: 700; }
.knowledge-result {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #e5eaf1;
  padding: 8px 2px;
  background: transparent;
  color: #24324a;
  text-align: left;
  cursor: pointer;
}
.chat-messages {
  max-height: min(280px, 30dvh);
  min-height: 80px;
  overflow: auto;
  overscroll-behavior: contain;
}
.chat-messages article {
  margin: 8px 30px 8px 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #eef4f7;
}
.chat-messages article.staff {
  margin-left: 30px;
  margin-right: 0;
  background: #eeeeff;
}
.chat-messages p {
  margin: 4px 0;
  white-space: pre-wrap;
}
.chat-messages small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.72rem;
}
.chat-typing {
  color: #5268ca;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}
.chat-safety {
  font-size: 0.78rem;
  background: #fff4e5;
  border: 1px solid #e6b85c;
  color: #673d00;
  padding: 9px;
  border-radius: 9px;
  margin: 10px 0;
}
.chat-alert {
  font-size: 0.82rem;
  background: #ffe7e7;
  border: 1px solid #e8a0a0;
  color: #811d1d;
  padding: 10px;
  border-radius: 9px;
  margin: 8px 0;
}
.chat-panel [data-chat-status].conversation-finished {
  padding: 11px 12px;
  color: #17614c;
  background: #e9f8f2;
  border: 1px solid #b5dfd0;
  border-radius: 10px;
  line-height: 1.45;
}
.chat-panel [data-chat-status].conversation-finished::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  color: #fff;
  background: #1f9d73;
  border-radius: 50%;
  font-weight: 900;
}
.chat-ended-actions { margin-top: 10px; }
.chat-ended-actions button { width: 100%; border: 0; border-radius: 9px; padding: 10px; color: #344a9f; background: #eef2ff; font-weight: 800; cursor: pointer; }
@media (max-height: 720px) {
  .chat-panel { bottom: 70px; max-height: calc(100dvh - 84px); padding: 14px; }
  .chat-panel header { top: -14px; margin: -14px -14px 0; padding: 12px 14px 8px; }
  .chat-safety { font-size: .7rem; padding: 7px; }
  .knowledge-panel { margin: 7px 0; padding: 7px; }
  .chat-messages { max-height: 25dvh; }
  .chat-panel textarea { min-height: 64px; }
}
@media (max-width: 520px) {
  .chat-launch { right: 14px; bottom: 14px; }
  .chat-panel { inset: 12px 12px 76px; width: auto; max-height: none; border-radius: 16px; }
}
