/* Homepage product demonstration. Keeps the live directory and app UI independent. */
.home-page .hero {
  padding-top: clamp(56px, 5.2vw, 82px);
  padding-bottom: 46px;
  background: #fff;
  --hero-heading: #163c35;
  --hero-primary: #163c35;
  --hero-primary-hover: #225b4d;
}
.home-page .hero-title {
  font-size: clamp(48px, 6.1vw, 88px);
  gap: .25em;
}
.home-page .hero-description {
  max-width: 620px;
  margin-top: 24px;
  color: #60736d;
  font-size: 17px;
  line-height: 1.8;
}
.home-page .hero-actions { margin-top: 28px; }
.home-page .product-showcase {
  --demo-ink: #163c35;
  --demo-muted: #647970;
  --demo-line: #dfebe5;
  position: relative;
  width: min(1120px, 100%);
  margin: 46px auto 0;
  text-align: left;
}
.product-showcase::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -50px -180px -36px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 45%, rgb(139 227 194 / 30%), transparent 52%),
    radial-gradient(ellipse at 90% 55%, rgb(186 231 216 / 35%), transparent 49%);
}
.showcase-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
  margin-bottom: 18px;
}
.showcase-intro > p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--demo-muted);
}
.demo-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e3ece7;
  border-radius: 100px;
  background: rgb(255 255 255 / 80%);
}
.demo-tabs button {
  min-height: 36px;
  min-width: 90px;
  padding: 6px 18px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #5b7067;
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 150ms ease, color 150ms ease;
}
.demo-tabs button[aria-selected='true'] {
  background: #163c35;
  color: #fff;
}
.demo-tabs button:not([aria-selected='true']):hover { background: #edf5f0; color: #163c35; }
.demo-window {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe8e1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px -36px rgb(32 87 65 / 24%), 0 2px 8px rgb(32 87 65 / 3%);
}
.demo-sidebar {
  display: flex;
  flex-direction: column;
  padding: 24px 14px 22px;
  border-right: 1px solid #e0eae5;
  background: #f5f9f6;
}
.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #073b35;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}
.demo-brand > img { display: block; flex-shrink: 0; }
.demo-brand > span > span { color: #00a585; }
.demo-sidebar > .demo-brand { margin-left: 6px; }
.demo-navigation {
  display: grid;
  gap: 7px;
  margin-top: 33px;
}
.demo-navigation a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #33574a;
  font-size: 13px;
  font-weight: 500;
}
.demo-navigation a:hover { background: #e9f2ec; }
.demo-navigation a.demo-navigation-active { background: #e1efe6; color: #174c39; }
.demo-navigation svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-sidebar-note { margin: 64px 10px 24px; }
.demo-note-line { display: block; width: 22px; height: 2px; background: #b4cebf; }
.demo-sidebar-note p { margin: 14px 0 0; color: #627a6c; font-size: 13px; line-height: 1.8; }
.demo-sidebar-bottom { display: grid; gap: 12px; margin: auto 9px 0; padding-top: 36px; color: #547161; font-size: 11px; }
.demo-sidebar-bottom > span:last-child { display: flex; align-items: center; gap: 6px; }
.demo-sidebar-bottom svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.demo-tiny-avatars { display: flex; padding-left: 4px; }
.demo-tiny-avatars img { margin-left: -4px; border: 2px solid #f5f9f6; border-radius: 50%; background: #e6efea; object-fit: cover; }
.demo-workspace { min-width: 0; }
.demo-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 28px;
  border-bottom: 1px solid #f0f4f1;
  color: #355348;
  font-size: 13px;
  font-weight: 500;
}
.demo-example-label { color: #66776d; font-size: 11px; font-weight: 400; }
.demo-conversation { padding: 28px 40px 24px; }
.demo-panel { max-width: 700px; margin-inline: auto; }
.demo-panel:focus-visible { outline: 2px solid #14856c; outline-offset: 8px; border-radius: 4px; }
.demo-question {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 24px auto;
  padding: 12px 18px;
  border-radius: 16px 16px 4px 16px;
  background: #edf5f0;
  color: #2d5143;
  font-size: 14px;
  line-height: 1.65;
}
.demo-response > .demo-brand { font-size: 12px; }
.demo-response > .demo-brand img { width: 22px; height: 22px; }
.demo-answer { margin: 12px 0 18px; color: #476054; font-size: 14px; line-height: 1.8; }
.demo-case {
  display: block;
  position: relative;
  padding: 20px 22px 17px;
  border: 1px solid #e1e9e4;
  border-radius: 12px;
  background: #fbfdfb;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.demo-case:hover { border-color: #8db6a0; background: #f5faf6; }
.demo-case-person { display: flex; align-items: center; gap: 13px; }
.demo-case-person > img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #edf2ee; }
.demo-case-person > div { display: grid; gap: 4px; }
.demo-case-person strong { color: #1e4937; font-size: 16px; font-weight: 600; }
.demo-case-person > div > span { color: #64766b; font-size: 11px; line-height: 1.5; }
.demo-case-arrow { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 1px solid #dce9df; border-radius: 50%; background: #fff; color: #608a70; }
.demo-case-arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.demo-case-title { margin-top: 15px; color: #234b39; font-size: 16px; font-weight: 500; line-height: 1.5; }
.demo-evidence { display: grid; gap: 7px; padding: 0; margin: 12px 0 15px; list-style: none; }
.demo-evidence li { display: flex; align-items: baseline; gap: 8px; color: #5c7365; font-size: 12px; line-height: 1.65; }
.demo-evidence svg { flex-shrink: 0; width: 14px; height: 14px; align-self: center; stroke: #669b7c; stroke-width: 1.5; }
.demo-case-link { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #e7eee8; color: #397453; font-size: 12px; }
.demo-case-link > span { font-size: 16px; }
.demo-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 40px 25px;
  padding: 15px 16px 15px 20px;
  border: 1px solid #dce8e0;
  border-radius: 14px;
  color: #66766d;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 160ms ease;
}
.demo-composer:hover { border-color: #95bba5; }
.demo-composer-action { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #3d7857; font-size: 12px; }
.demo-composer-action svg { width: 28px; height: 28px; padding: 5px; stroke: #fff; stroke-width: 1.5; border-radius: 50%; background: #9bc7af; }
.showcase-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; margin: 26px 0 0; color: #64766c; font-size: 12px; line-height: 1.7; }
.showcase-caption a { display: inline-flex; align-items: center; gap: 6px; color: #3b7b56; }
.showcase-caption svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 1000px) {
  .demo-window { grid-template-columns: 164px minmax(0, 1fr); }
  .demo-conversation { padding-inline: 25px; }
  .demo-composer { margin-inline: 25px; }
  .demo-sidebar { padding-inline: 10px; }
  .demo-sidebar-note { margin-top: 56px; }
  .home-page .product-showcase { margin-top: 38px; }
}
@media (max-width: 760px) {
  .home-page .hero { padding: 48px 20px 30px; }
  .home-page .hero-title { gap: 3px; font-size: clamp(40px, 8.5vw, 60px); }
  .home-page .hero-description { max-width: 350px; font-size: 14px; line-height: 1.9; margin-top: 20px; }
  .home-page .hero-description br { display: block; }
  .home-page .hero-actions { margin-top: 24px; }
  .home-page .product-showcase { margin-top: 34px; }
  .product-showcase::before { inset: -20px -50px -20px; }
  .showcase-intro { flex-direction: column; gap: 12px; margin-bottom: 15px; }
  .showcase-intro > p { font-size: 13px; }
  .demo-tabs { gap: 2px; }
  .demo-tabs button { min-width: 80px; min-height: 38px; padding-inline: 14px; font-size: 12px; }
  .demo-window { display: block; border-radius: 14px; }
  .demo-sidebar { display: none; }
  .demo-workspace-bar { padding-inline: 18px; min-height: 46px; font-size: 12px; }
  .demo-example-label { font-size: 10px; }
  .demo-conversation { padding: 20px 18px; }
  .demo-question { max-width: 95%; margin-bottom: 22px; padding: 10px 13px; font-size: 13px; }
  .demo-answer { margin-top: 12px; font-size: 13px; line-height: 1.8; }
  .demo-case { padding: 16px; border-radius: 10px; }
  .demo-case-person > img { width: 42px; height: 42px; }
  .demo-case-person strong { font-size: 15px; }
  .demo-case-person { gap: 10px; }
  .demo-case-person > div > span { font-size: 10px; }
  .demo-case-arrow { width: 28px; height: 28px; flex-shrink: 0; }
  .demo-case-title { font-size: 15px; margin-top: 16px; }
  .demo-evidence { gap: 8px; }
  .demo-evidence li { font-size: 12px; line-height: 1.75; }
  .demo-evidence svg { align-self: flex-start; margin-top: 4px; }
  .demo-composer { margin: 0 18px 20px; padding: 11px 12px; border-radius: 12px; }
  .demo-composer > span:first-child { font-size: 12px; }
  .demo-composer-action { gap: 6px; font-size: 11px; }
  .showcase-caption { gap: 4px 12px; font-size: 11px; margin-top: 20px; }
}
@media (max-width: 380px) {
  .home-page .hero { padding-inline: 14px; }
  .demo-conversation { padding-inline: 13px; }
  .demo-case { padding: 13px; }
  .demo-composer { margin-inline: 13px; }
  .demo-composer-action { font-size: 0; }
  .demo-composer-action svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-tabs button, .demo-case, .demo-composer { transition: none; }
}
