@font-face {
  font-family: Mada;
  src: url('/fonts/Mada.ttf');
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --pink: #e8608a;
  --p50: #fdf2f5;
  --p100: #fbe3ea;
  --p200: #f6c3d2;
  --p300: #f09bb4;
  --p500: #d9466f;
  --p600: #b83558;
  --p700: #922b47;
  --p800: #6e2337;
  --p900: #481828;
  --paper: #faf7f4;
  --line: #e7dfd7;
  --ink: #221c17;
  --muted: #6b5d51;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px Mada,
    system-ui;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 19px;
  background: white;
  color: var(--ink);
  display: inline-block;
}
button.primary,
.primary {
  background: var(--p700);
  color: white;
  border-color: var(--p700);
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #cbbfb3;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-block: 12px 5px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-block: 0 16px;
}
h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.16;
  letter-spacing: -1px;
}
h2 {
  font-size: 34px;
  line-height: 1.25;
}
h3 {
  font-size: 22px;
}
.muted,
small {
  color: var(--muted);
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding-inline: 32px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  gap: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}
.brand b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--pink);
  border-radius: 10px;
  color: white;
  margin-inline-end: 9px;
}
.links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.hero {
  padding-block: 64px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  color: var(--p700);
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 18px;
}
.hero p {
  font-size: 22px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block: 26px;
}
.pill {
  display: inline-block;
  border-radius: 20px;
  background: var(--p50);
  color: var(--p700);
  padding: 4px 12px;
  font-size: 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.demo-card {
  transform: rotate(-2deg);
  box-shadow: 10px 16px 0 #f3eee9;
  padding: 0;
  overflow: hidden;
}
.demo-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.dot {
  height: 10px;
  width: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #548366;
}
.bubbles {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.bubble {
  padding: 14px 18px;
  border-radius: 14px;
  background: #f3eee9;
  max-width: 90%;
  font-size: 17px;
}
.bubble.pink {
  background: var(--p100);
  margin-inline-start: auto;
}
.demo-foot {
  padding: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.trust {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
section {
  padding-block: 70px;
}
.section-title {
  max-width: 650px;
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price {
  font-size: 46px;
  font-weight: 750;
}
.price small {
  font-size: 17px;
  font-weight: 400;
}
.card ul {
  padding-inline-start: 20px;
  color: var(--muted);
}
.featured {
  border: 2px solid var(--pink);
}
.feature-icon {
  color: var(--p700);
  font-size: 28px;
  margin-bottom: 14px;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 35px;
  font-size: 16px;
}
.auth {
  max-width: 460px;
  margin: 50px auto;
  padding: 28px;
}
.auth h1 {
  font-size: 34px;
}
.auth button {
  width: 100%;
  margin-block: 20px 10px;
}
.error {
  color: #922b47;
  white-space: pre-wrap;
}
.app-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-inline-end: 1px solid var(--line);
  background: white;
  padding: 25px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 20px;
  margin-bottom: 36px;
  display: block;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 17px;
  color: var(--muted);
}
.nav a.active {
  background: var(--p50);
  color: var(--p700);
  font-weight: 700;
}
.main {
  padding: 26px 32px;
  min-width: 0;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.app-top h1 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0;
}
.banner {
  background: var(--p50);
  border: 1px solid var(--p200);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.inbox {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 230px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 570px;
  overflow: hidden;
}
.conversation-list {
  border-inline-end: 1px solid var(--line);
}
.list-tools {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 5px;
  overflow: auto;
  margin-top: 12px;
}
.filters button {
  padding: 4px 9px;
  white-space: nowrap;
  font-size: 14px;
}
.conversation-item {
  display: block;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  border-radius: 0;
  text-align: start;
}
.conversation-item.selected {
  background: var(--p50);
}
.conversation-item p {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 7px 0 0;
  color: var(--muted);
}
.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-head button {
  font-size: 14px;
  padding: 5px 8px;
}
.messages {
  padding: 20px;
  flex: 1;
  overflow: auto;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fffefc;
}
.message {
  padding: 11px 15px;
  background: #f3eee9;
  border-radius: 12px;
  max-width: 88%;
  align-self: flex-start;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.agent,
.message.bot {
  align-self: flex-end;
  background: var(--p50);
  border: 1px solid var(--p100);
}
.message small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.reply-box {
  padding: 15px;
  border-top: 1px solid var(--line);
  background: white;
}
.reply-box textarea {
  min-height: 70px;
}
.reply-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}
.crm {
  padding: 18px;
  border-inline-start: 1px solid var(--line);
}
.avatar {
  background: var(--p100);
  color: var(--p700);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: bold;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  margin: auto;
}
.stack {
  display: grid;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.wide {
  grid-column: 1/-1;
}
.steps {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--p700);
}
pre {
  direction: ltr;
  text-align: left;
  background: var(--paper);
  padding: 20px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat strong {
  font-size: 34px;
  display: block;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
td,
th {
  text-align: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
progress {
  width: 100%;
  accent-color: var(--p700);
  height: 18px;
}
.bottom-nav {
  display: none;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ticket {
  margin-top: 14px;
}
.ticket button {
  font-size: 14px;
  padding: 5px 10px;
}
.ticket p {
  font-size: 16px;
}
.demo-site {
  background: #f5f8f6;
}
.demo-site .hero {
  min-height: 600px;
}
.tooth {
  width: 230px;
  height: 270px;
  border-radius: 40% 40% 30% 30%;
  background: #ddece4;
  margin: auto;
  display: grid;
  place-items: center;
  font-size: 90px;
  color: #3b6653;
  border: 16px solid white;
}
.chart {
  width: 100%;
  height: 160px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1100px) {
  .inbox {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .crm {
    display: none;
  }
  .main {
    padding: 24px;
  }
  .hero {
    gap: 32px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
  .wrap {
    padding-inline: 20px;
  }
  .top {
    padding-block: 20px;
  }
  .brand {
    font-size: 20px;
  }
  .top .links > a:not(.button) {
    display: none;
  }
  .links {
    gap: 8px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 38px 54px;
    gap: 35px;
  }
  .hero p {
    font-size: 20px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .demo-card {
    transform: none;
  }
  .grid,
  .ticket-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .trust {
    flex-wrap: wrap;
    font-size: 14px;
  }
  .section-title h2 {
    font-size: 30px;
  }
  section {
    padding-block: 45px;
  }
  .auth {
    margin: 25px 16px;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 18px 16px 92px;
  }
  .app-top {
    margin-bottom: 16px;
  }
  .app-top h1 {
    font-size: 27px;
  }
  .app-top small {
    font-size: 14px;
  }
  .banner {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    background: white;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
    z-index: 20;
    font-size: 14px;
  }
  .bottom-nav a.active {
    color: var(--p700);
    font-weight: bold;
  }
  .inbox {
    display: block;
    min-height: 65vh;
  }
  .conversation-list {
    border: 0;
  }
  .chat {
    display: none;
  }
  .inbox.open .conversation-list {
    display: none;
  }
  .inbox.open .chat {
    display: flex;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 30;
  }
  .messages {
    max-height: none;
    min-height: 0;
  }
  .reply-box {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
  .chat-head {
    flex-wrap: wrap;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 20px;
  }
  .price {
    font-size: 40px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .steps {
    font-size: 13px;
    gap: 8px;
  }
  .form-grid {
    gap: 0;
  }
  .demo-site .hero {
    min-height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep the reply composer visible while each pane scrolls independently. */
.sidebar .brand {
  font-size: 16px;
}
.user-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-tools a {
  color: var(--p700);
  font-size: 14px;
}
.filters {
  flex-wrap: wrap;
  overflow: visible;
}
.inbox {
  height: calc(100dvh - 190px);
  min-height: 500px;
}
.conversation-list,
.crm {
  overflow-y: auto;
}
.chat {
  min-height: 0;
}
.messages {
  max-height: none;
  min-height: 0;
}
.reply-actions {
  flex-wrap: wrap;
}
.reply-actions select {
  flex: 1;
  min-width: 120px;
  width: auto;
}
.reply-actions button {
  white-space: nowrap;
  padding-inline: 12px;
}
input[type='color'] {
  height: 48px;
  padding: 6px;
}
.banner span {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .inbox {
    height: auto;
  }
  .inbox.open .chat {
    height: 100dvh;
  }
  .user-tools {
    gap: 8px;
    flex-direction: column;
    align-items: end;
  }
  .steps {
    flex-wrap: wrap;
  }
  .chat-head {
    flex-shrink: 0;
  }
  .reply-box {
    flex-shrink: 0;
  }
  .reply-actions {
    gap: 6px;
  }
  .reply-actions button {
    font-size: 15px;
  }
}
[hidden] {
  display: none !important;
}
.steps .current {
  font-weight: 800;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 6px;
}
#inline-preview {
  margin-top: 24px;
}
#inline-preview iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
}
.mobile-performance {
  display: none;
}
@media (max-width: 700px) {
  .desktop-performance {
    display: none;
  }
  .mobile-performance {
    display: grid;
    gap: 18px;
  }
  .staff-summary {
    border-bottom: 1px solid var(--line);
    padding-block: 12px;
  }
  .staff-summary > a {
    color: var(--p700);
    font-weight: 700;
  }
  .staff-summary dl {
    display: flex;
    gap: 16px;
    justify-content: space-between;
  }
  .staff-summary dt {
    font-size: 14px;
    color: var(--muted);
  }
  .staff-summary dd {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
  }
}
#new-bot {
  flex-shrink: 0;
  white-space: nowrap;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff4d6;
  color: #6b4a00;
  border-bottom: 1px solid #f0d58a;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
