.delichat-page {
  --chat-lilac: #f5d9cd;
  --chat-purple: #db4c18;
  --chat-purple-dark: #b63b0d;
}

.delichat-page .site-header {
  background: rgba(251, 245, 237, 0.94);
}

.chat-nav-back {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-nav-back:hover {
  color: var(--orange);
}

.chat-nav-cta {
  border-color: var(--chat-purple);
  color: var(--chat-purple-dark);
}

.chat-nav-cta:hover {
  background: var(--chat-purple-dark);
  color: #fff;
}

.chat-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 25%, rgba(231, 219, 242, 0.85), transparent 38%),
    radial-gradient(ellipse at 7% 100%, rgba(255, 255, 255, 0.8), transparent 40%),
    var(--cream);
}

.chat-hero-grid {
  min-height: 660px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 58px;
}

.chat-hero-copy {
  position: relative;
  z-index: 2;
  animation: slide-in 0.75s ease both;
}

.chat-kicker {
  color: var(--chat-purple-dark);
}

.chat-kicker i {
  background: var(--chat-purple);
  box-shadow: 0 0 0 5px rgba(219, 76, 24, 0.12);
}

.chat-hero h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 600;
  letter-spacing: -3.7px;
  line-height: 1.08;
}

.chat-hero h1 em,
.chat-section-heading h2 em,
.chat-benefit-copy h2 em,
.chat-ai-copy h2 em {
  color: var(--chat-purple);
  font-style: normal;
}

.chat-hero-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.chat-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 27px;
}

.chat-button {
  background: var(--chat-purple);
}

.chat-button:hover {
  background: var(--chat-purple-dark);
  box-shadow: 0 12px 24px rgba(182, 59, 13, 0.2);
}

.chat-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 480px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
}

.chat-hero-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--chat-lilac);
  color: var(--chat-purple-dark);
  font-weight: 900;
}

.chat-hero-note strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
}

.chat-showcase {
  position: relative;
  min-width: 0;
  display: grid;
  min-height: 480px;
  place-items: center;
  isolation: isolate;
  animation: slide-in 0.85s 0.1s ease both;
}

.chat-showcase::before {
  position: absolute;
  z-index: -1;
  width: min(94%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9f1 0%, var(--chat-lilac) 54%, rgba(245, 217, 205, 0) 73%);
  content: "";
}

.chat-showcase-ring {
  position: absolute;
  z-index: -1;
  width: min(98%, 510px);
  aspect-ratio: 1;
  border: 1px solid rgba(219, 76, 24, 0.2);
  border-radius: 50%;
  animation: orbit-spin 48s linear infinite;
}

.chat-inbox {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(18, 40, 60, 0.1);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(18, 40, 60, 0.18);
  transform: rotate(-2deg);
}

.chat-inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-inbox-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px "Poppins", sans-serif;
}

.chat-inbox-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.chat-inbox-brand span span {
  color: var(--chat-purple);
}

.inbox-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.inbox-status i,
.inbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a9a72;
}

.chat-inbox-body {
  min-height: 325px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
}

.inbox-queue {
  padding: 15px 11px;
  border-right: 1px solid var(--line);
  background: #f8f5f1;
}

.inbox-queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
}

.queue-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--chat-purple);
  color: #fff;
  font-size: 8px;
}

.inbox-contact {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 7px;
  padding: 9px 5px;
  border-bottom: 1px solid rgba(18, 40, 60, 0.06);
}

.inbox-contact.is-current {
  border-radius: 8px;
  background: var(--chat-lilac);
}

.contact-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #f5d9cd;
  color: var(--navy);
  font-size: 8px;
  font-weight: 900;
}

.inbox-contact:nth-of-type(3) .contact-avatar {
  background: #dcebe3;
}

.inbox-contact:nth-of-type(4) .contact-avatar {
  background: var(--sand);
}

.inbox-contact strong,
.inbox-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-contact strong {
  font-size: 8px;
}

.inbox-contact small {
  color: var(--muted);
  font-size: 7px;
}

.inbox-conversation {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.conversation-person strong,
.conversation-person small {
  display: block;
}

.conversation-person strong {
  font-size: 10px;
}

.conversation-person small {
  color: var(--muted);
  font-size: 8px;
}

.conversation-assignee {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--chat-lilac);
  color: var(--chat-purple-dark);
  font-size: 7px;
  font-weight: 900;
}

.conversation-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 13px;
  background:
    radial-gradient(circle at 10px 10px, rgba(18, 40, 60, 0.025) 1px, transparent 1.5px),
    #fffdfa;
  background-size: 18px 18px;
}

.message-bubble {
  max-width: 85%;
  padding: 9px 11px;
  border-radius: 11px 11px 11px 3px;
  background: #f2eee8;
  color: var(--navy);
  font-size: 8px;
  line-height: 1.55;
}

.message-bubble small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 6px;
  text-align: right;
}

.message-bubble.is-agent {
  align-self: flex-end;
  border-radius: 11px 11px 3px 11px;
  background: #eee8f5;
}

.conversation-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 11px 11px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #89919a;
  font-size: 8px;
}

.conversation-input span:last-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--chat-purple);
  color: #fff;
  font-size: 12px;
}

.chat-inbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.chat-inbox-foot span:last-child {
  color: var(--salmon);
}

.chat-section {
  padding: 96px 0;
}

.chat-section-heading {
  max-width: 730px;
  margin: 0 auto 42px;
  text-align: center;
}

.chat-section-heading h2,
.chat-benefit-copy h2,
.chat-ai-copy h2 {
  margin: 15px 0;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.16;
}

.chat-section-heading > p,
.chat-benefit-copy > p,
.chat-ai-copy > p {
  color: var(--muted);
  font-size: 14px;
}

.chat-pain-section {
  background: var(--paper);
}

.chat-pain-grid,
.chat-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chat-pain-card {
  min-height: 195px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-pain-card:hover,
.chat-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.chat-pain-icon,
.chat-feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--chat-lilac);
  color: var(--chat-purple-dark);
  font-size: 17px;
  font-weight: 900;
}

.chat-pain-card h3,
.chat-feature-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: -0.4px;
}

.chat-pain-card p,
.chat-feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.chat-benefit-section {
  background: #f2e9df;
}

.chat-benefit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.chat-benefit-copy h2 {
  max-width: 540px;
}

.chat-benefit-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.chat-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
}

.chat-benefit-list li::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e3eee5;
  color: var(--green);
  font-size: 10px;
}

.chat-flow-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 40, 60, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.96), transparent 54%),
    var(--chat-lilac);
}

.chat-flow-orbit {
  position: absolute;
  width: 280px;
  aspect-ratio: 1;
  border: 1px dashed rgba(219, 76, 24, 0.35);
  border-radius: 50%;
  animation: orbit-spin 50s linear infinite;
}

.chat-flow-logo {
  position: relative;
  z-index: 1;
  width: min(64%, 260px);
  filter: drop-shadow(0 18px 24px rgba(18, 40, 60, 0.15));
  animation: mascot-float 5s ease-in-out infinite;
}

.chat-flow-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(18, 40, 60, 0.08);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 24px rgba(18, 40, 60, 0.1);
  font-size: 9px;
  font-weight: 900;
}

.chat-flow-chip::before {
  content: "✓";
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--chat-lilac);
  color: var(--chat-purple-dark);
}

.chat-flow-chip.chip-top {
  top: 15%;
  left: 5%;
}

.chat-flow-chip.chip-right {
  top: 48%;
  right: 4%;
}

.chat-flow-chip.chip-bottom {
  bottom: 13%;
  left: 12%;
}

.chat-features-section {
  background: var(--paper);
}

.chat-feature-card {
  min-height: 215px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-feature-icon {
  background: #e5efe8;
  color: var(--green);
}

.chat-feature-card:nth-child(3n + 2) .chat-feature-icon {
  background: #f8e8dc;
  color: var(--orange-dark);
}

.chat-feature-card h3 {
  margin-top: 15px;
}

.chat-audience-section {
  background: var(--cream);
}

.chat-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.chat-audience-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.chat-audience-card strong {
  font: 700 14px "Poppins", sans-serif;
}

.chat-audience-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.chat-ai-section {
  background: #f2e9df;
}

.chat-ai-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 68px;
  align-items: center;
}

.chat-ai-art {
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: radial-gradient(ellipse at center, #405a6d 0%, #203d53 68%, #152e42 100%);
}

.chat-ai-art img {
  width: min(82%, 300px);
  max-height: 290px;
  object-fit: contain;
  animation: mascot-float 5.5s ease-in-out infinite;
}

.chat-ai-copy .eyebrow {
  color: var(--chat-purple-dark);
}

.chat-ai-copy h2 {
  max-width: 560px;
}

.chat-ai-disclaimer {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

.chat-faq-section {
  background: var(--paper);
}

.chat-faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
}

.chat-faq-intro h2 {
  margin: 14px 0;
  font-size: clamp(31px, 4vw, 44px);
  letter-spacing: -1.6px;
  line-height: 1.2;
}

.chat-faq-intro > p {
  color: var(--muted);
  font-size: 13px;
}

.chat-faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.chat-faq-list summary {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.chat-faq-list summary::-webkit-details-marker {
  display: none;
}

.chat-faq-list summary::after {
  position: absolute;
  top: 0;
  right: 4px;
  color: var(--chat-purple);
  content: "+";
  font-size: 19px;
  line-height: 1;
}

.chat-faq-list details[open] summary::after {
  content: "−";
}

.chat-faq-list details p {
  margin: 10px 28px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.chat-cta-section {
  padding: 20px 0 95px;
  background: var(--paper);
}

.chat-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
  min-height: 330px;
  overflow: hidden;
  padding: 45px 52px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 50%, rgba(219, 76, 24, 0.28), transparent 36%),
    var(--navy);
  color: #fff;
}

.chat-cta-copy h2 {
  max-width: 600px;
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.7px;
  line-height: 1.18;
}

.chat-cta-copy > p {
  max-width: 540px;
  margin-bottom: 22px;
  color: #d4dce2;
  font-size: 13px;
}

.chat-cta-copy .chat-kicker {
  color: var(--salmon);
}

.chat-cta-art {
  position: relative;
  min-height: 235px;
  display: grid;
  place-items: center;
}

.chat-cta-art img {
  width: min(78%, 220px);
  max-height: 235px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.2));
  animation: mascot-float 5s ease-in-out infinite;
}

.chat-footer {
  padding: 30px 0;
  background: var(--navy);
  color: #d4dce2;
  font-size: 11px;
}

.chat-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.chat-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.chat-footer a:hover {
  color: #fff;
}

@media (max-width: 1020px) {
  .chat-hero-grid {
    min-height: 580px;
    gap: 24px;
  }

  .chat-inbox-body {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .chat-benefit-grid,
  .chat-ai-grid {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .chat-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 50px;
    padding-bottom: 35px;
  }

  .chat-hero h1 {
    max-width: 620px;
    font-size: clamp(41px, 10vw, 62px);
    letter-spacing: -2.6px;
  }

  .chat-hero-copy > p {
    font-size: 15px;
  }

  .chat-showcase {
    min-height: 390px;
  }

  .chat-inbox {
    width: min(100%, 510px);
  }

  .chat-inbox-body {
    min-height: 290px;
  }

  .chat-section {
    padding: 72px 0;
  }

  .chat-pain-grid,
  .chat-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-benefit-grid,
  .chat-ai-grid,
  .chat-faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .chat-flow-visual {
    min-height: 350px;
  }

  .chat-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-ai-art {
    min-height: 275px;
  }

  .chat-ai-art img {
    max-height: 225px;
  }

  .chat-cta-section {
    padding-bottom: 70px;
  }

  .chat-cta-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 24px 0;
  }

  .chat-cta-art {
    min-height: 210px;
  }

  .chat-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .chat-hero-grid {
    padding-top: 38px;
  }

  .chat-showcase {
    min-height: 335px;
  }

  .chat-inbox-top {
    padding: 11px 12px;
  }

  .chat-inbox-body {
    min-height: 260px;
    grid-template-columns: 0.72fr 1.28fr;
  }

  .inbox-queue {
    padding: 12px 7px;
  }

  .inbox-contact {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 5px;
    padding: 8px 2px;
  }

  .contact-avatar {
    width: 23px;
    height: 23px;
  }

  .conversation-head {
    padding: 11px 8px;
  }

  .conversation-assignee {
    padding: 4px 5px;
    font-size: 6px;
  }

  .conversation-messages {
    gap: 8px;
    padding: 13px 8px;
  }

  .message-bubble {
    padding: 7px 8px;
    font-size: 7px;
  }

  .chat-inbox-foot {
    padding: 9px 11px;
    font-size: 7px;
  }

  .chat-pain-grid,
  .chat-feature-grid {
    grid-template-columns: 1fr;
  }

  .chat-pain-card,
  .chat-feature-card {
    min-height: auto;
  }

  .chat-audience-card {
    min-height: 115px;
    padding: 14px;
  }

  .chat-flow-chip {
    padding: 8px 9px;
    font-size: 7px;
  }

  .chat-flow-chip.chip-right {
    right: 2%;
  }

  .chat-footer-links {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-showcase,
  .chat-hero-copy {
    animation: none;
  }
}
