:root {
  color-scheme: light;
  --ink: #162021;
  --muted: #5f6d70;
  --line: #d9e2e0;
  --surface: #ffffff;
  --surface-soft: #f5f8f7;
  --brand: #0f5b5f;
  --brand-dark: #0d3f42;
  --accent: #c94e3f;
  --amber: #b88727;
  --blue: #345b8c;
  --shadow: 0 16px 42px rgba(16, 32, 33, 0.12);

  --chat--color-primary: var(--brand);
  --chat--color-primary-shade-50: #0d4d50;
  --chat--color-primary-shade-100: var(--brand-dark);
  --chat--color-secondary: var(--blue);
  --chat--color-secondary-shade-50: #28476f;
  --chat--color-light: #f4f7f7;
  --chat--color-dark: var(--ink);
  --chat--border-radius: 8px;
  --chat--window--width: 100%;
  --chat--window--height: 100%;
  --chat--textarea--height: 42px;
  --chat--textarea--max-height: 64px;
  --chat--message--bot--background: #ffffff;
  --chat--message--bot--color: var(--ink);
  --chat--message--user--background: var(--brand);
  --chat--message--user--color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 226, 224, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 120px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

.support-shell {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: stretch;
  height: calc(100svh - 72px);
  min-height: 0;
  overflow: hidden;
  padding: clamp(20px, 3vw, 42px) clamp(18px, 4vw, 56px);
}

.support-copy {
  align-self: stretch;
  max-width: 640px;
  overflow-y: auto;
  padding-right: 6px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
  margin-bottom: 0;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
  margin-bottom: 24px;
}

.query-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.query-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.query-strip button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-dark);
  border-radius: 8px;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.query-strip button:hover {
  border-color: var(--brand);
}

.support-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0;
}

.support-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
}

.support-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-metrics dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 91, 95, 0.18);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.panel-header div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #2d9a61;
  border-radius: 50%;
}

.chat-status {
  display: none;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff8ea;
  color: #755410;
  font-size: 14px;
  line-height: 1.45;
}

.chat-status.is-visible {
  display: block;
}

.chat-frame {
  min-height: 0;
  width: 100%;
  height: 100%;
}

.chat-frame .chat-window {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  max-height: 100% !important;
  border: 0;
  box-shadow: none;
}

.chat-frame .chat-layout,
.chat-frame .chat-wrapper,
.chat-frame .chat-container {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  min-height: 0 !important;
}

.chat-frame .chat-body,
.chat-frame .chat-messages-list,
.chat-frame .chat-messages {
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
}

.chat-frame .chat-body {
  display: flex !important;
  flex-direction: column !important;
}

.chat-frame .chat-messages-list,
.chat-frame .chat-messages {
  flex: 1 1 auto !important;
}

.chat-frame .chat-footer,
.chat-frame .chat-input,
.chat-frame .chat-inputs,
.chat-frame .chat-input-wrapper {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 84px !important;
}

.chat-frame .chat-input,
.chat-frame .chat-inputs,
.chat-frame .chat-input-wrapper {
  align-items: center !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.chat-frame textarea,
.chat-frame input[type="text"],
.chat-frame [contenteditable="true"] {
  min-height: 42px !important;
  height: 42px !important;
  max-height: 64px !important;
  line-height: 1.35 !important;
  resize: none !important;
  overflow-y: auto !important;
}

.coverage-band {
  padding: clamp(44px, 6vw, 82px) clamp(18px, 4vw, 56px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px;
  background: #f7f9f9;
}

.product-card h3,
.product-card p {
  padding-left: 18px;
  padding-right: 18px;
}

.product-card h3 {
  margin-top: 18px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
  padding-bottom: 20px;
}

code {
  padding: 2px 5px;
  background: #eef4f3;
  border-radius: 6px;
  color: var(--brand-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.site-footer span:first-child {
  color: #ffffff;
  font-weight: 800;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .support-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .assistant-panel {
    height: calc(100svh - 128px);
    min-height: 560px;
    order: 1;
  }

  .support-copy {
    order: 2;
    max-width: none;
    overflow: visible;
    padding-right: 0;
  }

  .section-heading,
  .coverage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .support-metrics {
    grid-template-columns: 1fr;
  }

  .assistant-panel {
    height: calc(100svh - 150px);
    min-height: 520px;
  }

  .site-footer {
    flex-direction: column;
  }
}
