/* AI conversation story. Only loaded on the homepage. */
.hero .eyebrow {
  font-size: 9px;
  letter-spacing: 1.3px;
}
.hero h1 {
  font-size: clamp(44px, 4.2vw, 63px);
  letter-spacing: -2.7px;
}
.assistant-preview .after-hours {
  font-size: 7px;
  letter-spacing: 0.45px;
  white-space: nowrap;
}
.channel-logos > .channel-whatsapp {
  color: #23764b;
}
.channel-whatsapp .icon {
  width: 25px;
  height: 25px;
}
.ai-story {
  padding: 96px 0 90px;
  background: #f1f5ee;
  border-bottom: 1px solid #e5eadd;
}
.ai-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 80px;
}
.ai-story-copy {
  padding-top: 9px;
}
.ai-story-copy > .eyebrow {
  color: #64745d;
  font-size: 9px;
  letter-spacing: 1.2px;
  margin-bottom: 23px;
}
.ai-story h2 {
  font-size: clamp(35px, 3.3vw, 46px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -1.9px;
}
.ai-story h2 > span {
  color: var(--green);
}
.ai-story-intro {
  font-size: 14px;
  line-height: 1.95;
  color: #65715e;
  margin-top: 25px;
  max-width: 450px;
}
.ai-whatsapp-highlight {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 22px;
  padding: 17px 18px;
  background: #e5f0e4;
  border: 1px solid #d2e4d0;
  border-radius: 10px;
}
.ai-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: #23764b;
  border-radius: 9px;
  color: #fff;
}
.ai-whatsapp-icon .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}
.ai-whatsapp-highlight p {
  color: #5f775b;
  font-size: 12px;
  line-height: 1.85;
}
.ai-whatsapp-highlight strong {
  display: block;
  color: #285a3d;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 3px;
}
.ai-story-steps {
  display: grid;
  gap: 9px;
  margin: 30px 0 27px;
}
.ai-story-step {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 18px 16px;
  background: transparent;
  color: var(--ink);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.ai-story-step:hover {
  background: #ffffff88;
  border-color: #d9e2d2;
}
.ai-story-step[aria-pressed="true"] {
  background: #fff;
  border-color: #d9e2d2;
  box-shadow: 0 4px 15px #304b2404;
}
.ai-step-number {
  font-size: 10px;
  font-weight: 750;
  color: #7f8f71;
  line-height: 2;
  padding-top: 1px;
}
.ai-story-step[aria-pressed="true"] .ai-step-number {
  color: var(--coral-dark);
}
.ai-story-step > span:nth-child(2) {
  flex: 1;
}
.ai-story-step strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 6px;
}
.ai-story-step strong + span {
  display: block;
  font-size: 12px;
  line-height: 1.85;
  color: #707b66;
}
.ai-story-step > .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #8f9d80;
}
.ai-story-step[aria-pressed="true"] > .icon {
  color: var(--green);
}
.ai-story-copy > .text-link {
  font-size: 12px;
  color: var(--green);
}
.ai-conversation-wrap {
  min-width: 0;
}
.ai-device-caption {
  margin-bottom: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #65745b;
}
.ai-phone-device {
  position: relative;
  max-width: 390px;
  margin-inline: auto;
  padding: 7px;
  border: 1px solid #909b8e;
  border-radius: 48px;
  background: #29312c;
  box-shadow:
    0 0 0 2px #d0d6cb,
    0 25px 55px #273a2426,
    0 7px 16px #273a2414;
}
.ai-phone-device::before,
.ai-phone-device::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #566052;
}
.ai-phone-device::before {
  left: -4px;
  top: 115px;
  height: 46px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 55px 0 #566052;
}
.ai-phone-device::after {
  right: -4px;
  top: 149px;
  height: 68px;
  border-radius: 0 2px 2px 0;
}
.ai-conversation-card {
  border: 1px solid #111b13;
  border-radius: 40px;
  background: #fff;
  overflow: hidden;
}
.ai-phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 7px 26px 0;
  color: #202a24;
}
.ai-phone-time {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.ai-phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 26px;
  border-radius: 20px;
  background: #18201c;
}
.ai-phone-island::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 12px;
  width: 8px;
  height: 8px;
  border: 2px solid #263630;
  border-radius: 50%;
  background: #152820;
}
.ai-phone-indicators {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-phone-indicators svg {
  width: 14px;
  height: 11px;
  fill: currentColor;
}
.ai-phone-indicators .ai-phone-wifi {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.ai-phone-indicators .ai-phone-battery {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.ai-phone-battery .ai-battery-charge {
  fill: currentColor;
  stroke: none;
}
.ai-phone-home {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  background: #f0f6ec;
}
.ai-phone-home span {
  width: 102px;
  height: 4px;
  border-radius: 5px;
  background: #29352b;
}
.ai-conversation-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 19px 18px;
}
.ai-conversation-avatar {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--coral);
  color: #fff;
  flex-shrink: 0;
}
.ai-conversation-avatar .icon {
  width: 21px;
  height: 21px;
}
.ai-conversation-heading h3 {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}
.ai-conversation-heading p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.ai-conversation-heading .status-dot {
  width: 5px;
  height: 5px;
}
.ai-channel-list {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 0.85fr 0.8fr;
  gap: 7px;
  list-style: none;
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 0;
}
.ai-channel-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border: 1px solid #e5e9e0;
  border-radius: 6px;
  background: #f8faf6;
  color: #63715a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.ai-channel-list .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.ai-channel-list .ai-channel-whatsapp {
  color: #226b42;
  background: #e6f4e8;
  border-color: #bcdbbf;
}
.ai-treatment-label {
  margin-left: auto;
  white-space: nowrap;
}
.ai-lead-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-block: 1px solid #e9ede4;
  background: #f8faf5;
  color: #7a846f;
  font-size: 10px;
}
.ai-lead-source strong {
  color: #52624c;
  font-weight: 700;
}
.ai-facebook-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4eade;
  color: #586e4b;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  overflow: hidden;
}
.ai-conversation-messages {
  list-style: none;
  padding: 20px 17px 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 500px;
}
.ai-message {
  max-width: 94%;
}
.ai-message-speaker {
  display: block;
  color: #7d8873;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.6px;
  margin: 0 2px 5px;
}
.ai-message p {
  padding: 10px 13px;
  border-radius: 10px 10px 10px 2px;
  background: #f0f3ed;
  color: #42503e;
  font-size: 12px;
  line-height: 1.75;
}
.ai-message-patient {
  align-self: flex-end;
}
.ai-message-patient .ai-message-speaker {
  text-align: right;
  color: #a78871;
}
.ai-message-patient p {
  background: #fceee1;
  color: #8c593a;
  border-radius: 10px 10px 2px 10px;
}
.ai-waiting-note {
  margin: auto 16px;
  padding: 30px 24px;
  border: 1px dashed #dce4d5;
  border-radius: 12px;
  background: #fafbf8;
  text-align: center;
  color: #607353;
}
.ai-waiting-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf0e3;
  margin: 0 auto 16px;
}
.ai-waiting-note strong {
  font-size: 13px;
  display: block;
}
.ai-waiting-note p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 9px;
}
.ai-conversation-outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 18px 10px;
  background: #f0f6ec;
  border-top: 1px solid #e0e8d8;
  min-height: 76px;
}
.ai-outcome-icon {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e0edda;
  color: #548046;
}
.ai-outcome-icon .icon {
  width: 16px;
  height: 16px;
}
.ai-conversation-outcome strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 750;
  color: #48643d;
}
.ai-conversation-outcome p {
  font-size: 10px;
  line-height: 1.8;
  color: #7a8a6d;
  margin-top: 4px;
}
.ai-example-caption {
  font-size: 9px;
  color: #7b8870;
  line-height: 1.8;
  text-align: center;
  max-width: 380px;
  margin: 20px auto 0;
}
.ai-booking-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 390px;
  margin: 21px auto 0;
  font-size: 11px;
  line-height: 1.85;
  color: #7a846f;
  padding-inline: 8px;
}
.ai-booking-note > .icon {
  width: 18px;
  height: 18px;
  color: #7e936e;
  margin-top: 3px;
}
.ai-booking-note strong {
  display: block;
  font-weight: 750;
  color: #596b4d;
  margin-bottom: 3px;
}
@media (max-width: 1150px) {
  .hero h1 {
    font-size: 49px;
    letter-spacing: -2.3px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .ai-story-grid {
    gap: 44px;
  }
  .ai-story h2 {
    font-size: 38px;
  }
  .ai-story-step {
    padding: 15px 12px;
    gap: 11px;
  }
  .ai-conversation-heading,
  .ai-conversation-outcome,
  .ai-lead-source {
    padding-inline: 18px;
  }
  .ai-conversation-messages {
    padding-inline: 17px;
  }
  .ai-channel-list {
    padding-inline: 0;
  }
}
@media (max-width: 950px) {
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .ai-story-grid {
    gap: 28px;
  }
  .ai-story h2 {
    font-size: 34px;
  }
  .ai-story-copy > .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .ai-story-intro {
    font-size: 13px;
  }
  .ai-story-step strong {
    font-size: 13px;
  }
  .ai-story-step strong + span {
    font-size: 11px;
  }
  .ai-story-step > .icon {
    display: none;
  }
  .ai-conversation-heading {
    gap: 10px;
    padding-inline: 16px;
  }
  .ai-conversation-heading h3 {
    font-size: 13px;
  }
  .ai-conversation-heading p {
    font-size: 9px;
  }
  .ai-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 390px;
  }
  .ai-whatsapp-highlight {
    padding: 15px 13px;
    gap: 10px;
  }
  .ai-conversation-messages {
    padding-inline: 16px;
    min-height: 500px;
  }
  .ai-message {
    max-width: 93%;
  }
  .ai-message p {
    padding: 10px 12px;
  }
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(40px, 7.7vw, 55px);
    letter-spacing: -2px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .ai-story {
    padding: 59px 0 57px;
  }
  .ai-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 560px;
  }
  .ai-story-copy {
    padding: 0;
  }
  .ai-story h2 {
    font-size: clamp(34px, 6.5vw, 42px);
    letter-spacing: -1.7px;
  }
  .ai-story-intro {
    font-size: 14px;
    margin-top: 22px;
  }
  .ai-story-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: 25px;
    gap: 8px;
  }
  .ai-story-step {
    flex-direction: column;
    padding: 12px 9px;
    gap: 7px;
    border-color: #dce4d5;
  }
  .ai-story-step strong {
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
  }
  .ai-story-step strong + span {
    display: none;
  }
  .ai-conversation-heading {
    padding: 15px 16px 18px;
  }
  .ai-conversation-messages {
    padding: 18px 15px 20px;
  }
  .ai-message p {
    padding: 10px 12px;
  }
  .ai-lead-source {
    padding: 10px 15px;
    gap: 7px;
  }
  .ai-conversation-outcome {
    padding: 16px 15px 10px;
  }
  .ai-example-caption {
    font-size: 9px;
    max-width: 320px;
    margin-inline: auto;
  }
  .ai-booking-note {
    padding: 0;
  }
  .assistant-preview .after-hours {
    display: none;
  }
}
@media (max-width: 390px) {
  .ai-phone-island {
    width: 82px;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .ai-story-copy > .eyebrow {
    font-size: 7px;
    letter-spacing: 0.85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-story-step {
    transition: none;
  }
}
