/* ==========================================================================
   Automation page — Hero
   ========================================================================== */
.automation-hero {
    position: relative;
    overflow: hidden;
    background-color: #020010;
    padding-block: 147px 28px;
}

.automation-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

.automation-hero__glow {
  position: absolute;
  top: clamp(-134px, -33vw, -320px);
  left: clamp(211px, 53vw, 807px);
  width: clamp(301px, 51vw, 774px);
  height: clamp(301px, 51vw, 774px);
  border-radius: 50%;
  background: #563384;
  filter: blur(clamp(70px, 14vw, 160px));
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.automation-hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 0, 16, 0) 55%, rgba(2, 0, 16, 0.9) 87%, #020010 100%),
    linear-gradient(255deg, rgba(2, 0, 16, 0) 4%, rgba(2, 0, 16, 0.66) 43%, rgba(2, 0, 16, 0.88) 69%, #020010 92%);
  pointer-events: none;
}

.automation-hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-hero__eyebrow {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    line-height: normal;
    letter-spacing: 2.86px;
    text-transform: uppercase;
    color: #cab5ff;
    margin: 0 0 22px;
}

.automation-hero__heading {
    max-width: 640px;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 64px;
    line-height: 72px;
    color: var(--color-text-light);
    margin: 0 0 28px;
    letter-spacing: 4%;
}

.automation-hero__heading span {
  display: block;
}

.automation-hero__description {
    max-width: 634px;
    font-family: var(--font-serif);
    font-size: clamp(16px, 0.9vw + 12px, 25px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    font-weight: 400;
}

@media (max-width: 767px) {
  .automation-hero__container {
    max-width: 100%;
  }

  .automation-hero__heading,
  .automation-hero__description {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-hero__bg-video {
    display: none;
  }

  .automation-hero {
    background-image: radial-gradient(60% 60% at 70% 0%, #4a2e70 0%, #020010 70%);
  }
}

/* ==========================================================================
   Automation page — Why Automate (feature cards)
   ========================================================================== */
.automation-why {
    position: relative;
    background: linear-gradient(180deg, rgb(2 0 16 / 10%), #020010);
    padding-block: clamp(56px, 8vw, 120px) clamp(56px, 9vw, 120px);
}

.automation-why__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-why__header {
  text-align: center;
  max-width: 1060px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.automation-why__eyebrow {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.86px;
    text-transform: uppercase;
    color: #cab5ff;
    margin: 0 0 16px;
    line-height: 13px;
}

.automation-why__heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 78.3px;
    color: #ffffff;
    margin: 0;
}

.automation-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.automation-why__card {
  display: flex;
  flex-direction: column;
  background-color: #0f0821;
  border: 1px solid rgba(185, 108, 255, 0.32);
  border-radius: 25px;
  padding: 20px 20px 30px;
}

.automation-why__illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 304.891 / 380.76;
  background-color: #1c162d;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 0.35s ease;
}

.automation-why__card:hover .automation-why__illustration {
  transform: scale(1.04);
}

.why-chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfafd;
  border: 1px solid #e1dcf9;
  border-radius: 16%;
  box-shadow: 0 4px 13px rgba(130, 86, 239, 0.1), 0 9px 5px rgba(130, 86, 239, 0.02);
}

.why-chip img {
  width: 52%;
  height: 52%;
}

.why-chip--core {
  background: linear-gradient(180deg, #fbfafd, #f2ecff);
  border-color: #ece8fe;
  box-shadow: 0 4px 4px rgba(130, 86, 239, 0.25);
}

/* ---- Card 1: automation flow ---- */
.why-chip--pos1 { left: 12.94%; top: 18.22%; width: 16.4%; height: 13.13%; }
.why-chip--pos2 { left: 41.8%; top: 18.22%; width: 16.4%; height: 13.13%; }
.why-chip--pos3 { left: 70.66%; top: 18.22%; width: 16.4%; height: 13.13%; }
.why-chip--flowcore { left: 39.83%; top: 41.86%; width: 20.34%; height: 16.29%; }
.why-chip--pos-bottom { left: 41.8%; top: 68.65%; width: 16.4%; height: 13.13%; }

.why-connector {
    position: absolute;
    line-height: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.why-connector--down {
  left: 49.9%;
  top: 58.15%;
  width: 0;
  height: 10.5%;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* ---- Card 2: workflow hub ---- */
.why-chip--hub-top { left: 40.9%; top: 11.32%; width: 18.6%; height: 14.9%; }
.why-chip--hub-tr { left: 73.29%; top: 28.25%; width: 18.6%; height: 14.9%; }
.why-chip--hub-tl { left: 8.15%; top: 28.25%; width: 18.6%; height: 14.9%; }
.why-chip--hub-br { left: 71.46%; top: 57.44%; width: 18.6%; height: 14.9%; }
.why-chip--hub-bl { left: 10.33%; top: 57.44%; width: 18.6%; height: 14.9%; }
.why-chip--hub-bottom { left: 40.9%; top: 74.06%; width: 18.6%; height: 14.9%; }
.why-chip--hubcore { left: 39.08%; top: 40.5%; width: 22.56%; height: 18.09%; z-index: 1; }

.why-hub-lines {
  position: absolute;
  inset: 0;
}
.why-hub-lines {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Card 3: dashboard mockup ---- */
.automation-why__illustration--dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5% 5.5%;
}

.why-dashboard {
    width: 100%;
    border-radius: 11px;
    line-height: 0;
    max-width: 271px;
}
.why-dashboard img {
    width: 100%;
    max-width: 100%;
}

.why-dashboard__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #171717;
}

.why-dashboard__stats {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.why-dashboard__stat {
  position: relative;
  background: #fff;
  border: 1px solid #e1dcf9;
  border-radius: 8px;
  padding: 10px;
}

.why-dashboard__stat-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: -0.02em;
  color: #171717;
}

.why-dashboard__stat-value {
  margin: 4px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #171717;
}

.why-dashboard__stat-delta {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  color: #31a873;
}

.why-dashboard__stat-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.why-dashboard__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  height: 26px;
}

.why-dashboard__bars span {
  flex: 1;
  background: #c5b5fa;
  border-radius: 2px;
}

.why-dashboard__bars span:nth-child(1) { height: 28%; }
.why-dashboard__bars span:nth-child(2) { height: 42%; }
.why-dashboard__bars span:nth-child(3) { height: 54%; }
.why-dashboard__bars span:nth-child(4) { height: 72%; }
.why-dashboard__bars span:nth-child(5) { height: 100%; }

.why-dashboard__suggestion {
  background: #fff;
  border: 1px solid #e1dcf9;
  border-radius: 8px;
  padding: 10px;
}

.why-dashboard__suggestion-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  color: #171717;
}

.why-dashboard__suggestion-label img {
  flex-shrink: 0;
}

.why-dashboard__suggestion-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #171717;
}

.why-dashboard__suggestion-confidence {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  color: #543582;
}

/* ---- Card 4: scale tree ---- */
.why-chip--scalecore { left: 39.83%; top: 21.37%; width: 20.34%; height: 16.29%; }

.why-scale-lines {
  position: absolute;
  inset: 0;
}

.why-scale-lines::before,
.why-scale-lines::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(161, 0, 255, 0.4);
}

.why-scale-lines::before {
  left: 50%;
  top: 37.66%;
  width: 0;
  height: 15.49%;
}

.why-scale-lines::after {
  left: 22.45%;
  top: 53.15%;
  width: 55.11%;
  height: 0;
}

.automation-why__illustration--scale {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12% 11.3%;
    gap: 4%;
}

.why-scale-card {
  position: relative;
  flex: 1;
  aspect-ratio: 62 / 43;
  background: #fbfafd;
  border: 1px solid #e1dcf9;
  border-radius: 16%;
  z-index: 1;
}

.why-scale-card__dot {
  position: absolute;
  top: 16%;
  left: 10%;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a100ff;
}

.why-scale-card__lines {
  position: absolute;
  top: 14%;
  right: 8%;
  width: 60%;
}

.why-scale-card__lines i {
  display: block;
  height: 8%;
  margin-bottom: 12%;
  border-radius: 999px;
  background: #ecedf5;
}

.why-scale-card__dots {
  position: absolute;
  bottom: 10%;
  left: 10%;
  right: 10%;
  height: 30%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 6px 6px;
}

.automation-why__card-eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 10px;
  transition: transform 0.3s ease;
}

.automation-why__card-heading {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 12px;
  transition: transform 0.3s ease;
}

.automation-why__card-description {
    font-family: var(--font-base);
    font-weight: 300;
    font-size: 15px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    transition: transform 0.3s ease;
}

.automation-why__card:hover .automation-why__card-eyebrow {
  transform: translateY(-3px);
}

.automation-why__card:hover .automation-why__card-heading {
  transform: translateY(-6px);
}

.automation-why__card:hover .automation-why__card-description {
  transform: translateY(-4px);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .automation-why__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Small-desktop bridge: at 1024-1279px the 4-col grid narrows cards enough
   that the dashboard mockup's fixed-size content overflows its illustration
   box (aspect-ratio + overflow:hidden), clipping the "Overview" title. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .why-dashboard {
    padding: 9px;
  }

  .why-dashboard__title {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .why-dashboard__stats {
    gap: 6px;
    margin-bottom: 6px;
  }

  .why-dashboard__stat {
    padding: 7px;
  }

  .why-dashboard__stat-label {
    font-size: 8px;
  }

  .why-dashboard__stat-value {
    margin: 3px 0;
    font-size: 12px;
  }

  .why-dashboard__stat-delta {
    font-size: 9px;
  }

  .why-dashboard__bars {
    height: 20px;
  }

  .why-dashboard__suggestion {
    padding: 8px;
  }

  .why-dashboard__suggestion-label {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .why-dashboard__suggestion-title {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .why-dashboard__suggestion-confidence {
    font-size: 10px;
  }
}

/* ==========================================================================
   Automation page — One Intelligent Platform (connected automation hub)
   ========================================================================== */
.automation-platform {
    position: relative;
    background-color: #020010;
    padding-block: clamp(56px, 8vw, 118px) clamp(56px, 9vw, 120px);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.automation-platform__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-platform__header {
  text-align: center;
  max-width: 1060px;
  margin-inline: auto;
}

.automation-platform__eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 16px;
}

.automation-platform__heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 86.2px;
    color: #ffffff;
    margin: 0;
}

.automation-platform__heading em {
  font-style: italic;
  color: #b96cff;
}

/* ---- Panel ---- */
.automation-platform__panel {
    position: relative;
    margin-top: 24px;
    border: 1px solid #b96cff99;
    border-radius: 30px;
    background-color: #070211;
    overflow: hidden;
}

.automation-platform__diagram {
    position: relative;
    display: grid;
    grid-template-columns: minmax(283px, 283fr) minmax(280px, 874fr) minmax(283px, 283fr);
    align-items: stretch;
    gap: 33px;
    padding: 50px 52px 70px;
}

/* ---- Item columns ---- */
.automation-platform__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.automation-platform__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-radius: 12px;
    background-color: #09030F;
    border: 1px solid rgb(185 108 255 / 20%);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.automation-platform__item--alt {
  background-color: #09020f;
  border-color: #2c183f;
}

.automation-platform__item:hover {
  background-color: #150a24;
  border-color: rgba(185, 108, 255, 0.5);
}

.automation-platform__item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #271531;
    border: 1px solid rgba(184, 108, 254, 0.5);
    padding: 11px;
}

.automation-platform__item-icon img {
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease;
}

.automation-platform__item:hover .automation-platform__item-icon img {
  transform: scale(1.15) rotate(-8deg);
}

.automation-platform__item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.automation-platform__item-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #ffffff;
}

.automation-platform__item-desc {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Center: connector lines + AI Engine core ---- */
.automation-platform__center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.automation-platform__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.automation-platform__line {
  fill: none;
  stroke: rgba(185, 108, 255, 0.45);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.automation-platform__pulse {
  filter: drop-shadow(0 0 4px rgba(241, 216, 255, 0.9));
}

@media (prefers-reduced-motion: reduce) {
  .automation-platform__pulse {
    display: none;
  }
}

.automation-platform__mobile-connector {
  display: none;
}

.automation-platform__mobile-connector-svg {
  display: none;
}

.automation-platform__core {
    position: relative;
    z-index: 1;
    width: min(330px, 92%);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid #AA74DB;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    background-image: radial-gradient(52% 40% at 50% 20%, #8033a2b3 0%, #2f133cb3 100%);
    background-color: #2f133c;
}

.automation-platform__core-label {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cd95f0;
    margin: 0 0 22px;
}

.automation-platform__core-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 15px;
    background-color: #321042;
    border: 1px solid #ac3bff;
    padding: 16px;
}

.automation-platform__core-icon img {
  width: 26px;
  height: 26px;
}

.automation-platform__core-title {
    font-family: var(--font-base);
    font-weight: 900;
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 22px;
    letter-spacing: 2%;
}

.automation-platform__core-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.automation-platform__core-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #31143E;
    border: 1px solid #744888;
    text-align: left;
}

.automation-platform__core-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #aa61cc;
  color: #aa61cc;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 10px;
  margin-top: 1px;
}

.automation-platform__core-step-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.automation-platform__core-step-title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
}

.automation-platform__core-step-desc {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.automation-platform__core-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.automation-platform__core-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(217, 205, 255, 0.25);
}

.automation-platform__core-dots span.is-active {
  background-color: #d9cdff;
}

/* ---- Stats bar ---- */
.automation-platform__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px;
    border: 1px solid #b96cff99;
    border-radius: 30px;
}

.automation-platform__stat {
    padding: 32px clamp(20px, 3vw, 38px);
    border-left: 1px solid #b96cff99;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.automation-platform__stat:first-child {
  border-left: none;
}

.automation-platform__stat-value {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 54px;
    letter-spacing: -5%;
    color: #b96cff;
    margin: 0 0 2px;
    line-height: 79px;
}

.automation-platform__stat-label {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: normal;
}

.automation-platform__stat--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.automation-platform__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1%;
    border-radius: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid;
}

.automation-platform__cta--primary {
  background-color: #f6e339;
  color: #171717;
}

.automation-platform__cta--secondary {
  color: #ffffff;
  border: 1px solid #ffffff;
}

.automation-platform__cta--primary:hover,
.automation-platform__cta--primary:focus-visible {
  transform: scale(1.04);
}

.automation-platform__cta--secondary:hover,
.automation-platform__cta--secondary:focus-visible {
  transform: scale(1.04);
  border-color: #f6e339;
}

/* ---- Tablet: 2-column card grid, no connector fan ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .automation-platform__diagram {
    grid-template-columns: 1fr;
  }

  .automation-platform__lines {
    display: none;
  }

  .automation-platform__mobile-connector {
    display: block;
    position: relative;
    width: 2px;
    height: 48px;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(185, 108, 255, 0.05), rgba(185, 108, 255, 0.6));
  }

  .automation-platform__mobile-connector--bottom {
    background: linear-gradient(180deg, rgba(185, 108, 255, 0.6), rgba(185, 108, 255, 0.05));
  }

  .automation-platform__mobile-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d9cdff;
    box-shadow: 0 0 8px 2px rgba(217, 205, 255, 0.7);
    transform: translate(-50%, -50%);
    animation: automation-platform-mobile-pulse 2.4s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .automation-platform__mobile-connector::after {
      animation: none;
    }
  }

  .automation-platform__col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .automation-platform__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .automation-platform__core {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }

  .automation-platform__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .automation-platform__stat--cta {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 12px;
    padding: 24px clamp(20px, 3vw, 40px) 32px;
    border-left: none;
  }
}

@keyframes automation-platform-mobile-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* ---- Mobile: stacked single column ---- */
@media (max-width: 767px) {
  .automation-platform__panel {
    border-radius: 16px;
  }

  .automation-platform__diagram {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 10px;
}

  .automation-platform__lines {
    display: none;
  }

  .automation-platform__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .automation-platform__mobile-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin-inline: auto;
  }

  .automation-platform__mobile-connector-svg {
    display: block;
    width: 200px;
    height: 60px;
    overflow: visible;
  }

  .automation-platform__mobile-line {
    fill: none;
    stroke: rgba(185, 108, 255, 0.45);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
  }

  .automation-platform__mobile-pulse {
    filter: drop-shadow(0 0 4px rgba(241, 216, 255, 0.9));
  }

  @media (prefers-reduced-motion: reduce) {
    .automation-platform__mobile-pulse {
      display: none;
    }
  }

  .automation-platform__col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .automation-platform__item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

  .automation-platform__item-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
  }

  .automation-platform__item-icon img {
    width: 24px;
    height: 24px;
  }

  .automation-platform__item-title {
    font-size: 11px;
  }

  .automation-platform__item-desc {
    display: none;
  }

  .automation-platform__core {
    width: 100%;
    padding: 20px 16px;
  }

  .automation-platform__core-title {
    font-size: 24px;
    margin-bottom: 20px;
}

  .automation-platform__core-step {
    padding: 10px 12px;
  }

  .automation-platform__stats {
    grid-template-columns: 1fr;

    margin-top: 32px;
}

  .automation-platform__stat {
    border-left: none;
    border-bottom: 1px solid rgba(185, 108, 255, 0.3);
    padding: 20px clamp(16px, 4vw, 24px);
  }

  .automation-platform__stat--cta {
    flex-direction: column;
    gap: 12px;
    padding: 20px clamp(16px, 4vw, 24px) 24px;
    border-bottom: none;
  }

  .automation-platform__stat-value {
    font-size: 40px;
    line-height: normal;
    margin-bottom: 10px;
}
.automation-platform__stat-label {
    font-size: 12px;
}

  .automation-platform__cta {
    padding: 16px 20px;
    font-size: 16px;
    letter-spacing: 0;
}
}

@media (max-width: 767px) {
  .automation-why__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
/*    margin-inline: calc(var(--container-padding-inline) * -1);*/
    padding-inline: var(--container-padding-inline);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .automation-why__list::-webkit-scrollbar {
    display: none;
  }

  .automation-why__card {
    flex: 0 0 272px;
    scroll-snap-align: start;
    padding: 15px 15px 24px;
    border-width: 0.785px;
    border-radius: 12px;
    transform: translateY(0) !important;
}

  .automation-why__illustration {
    margin-bottom: 18px;
    border-radius: 8px;
  }

  .automation-why__card-eyebrow {
    font-size: 10px;
    letter-spacing: 1.46px;
    margin-bottom: 10px;
  }

  .automation-why__card-heading {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .automation-why__card-description {
    font-size: 12px;
    line-height: 1.83;
  }
}

/* ==========================================================================
   Automation page — Start with one / Built for proof
   ========================================================================== */
.automation-proof {
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 65% 45%, rgba(248, 181, 50, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 60% at 35% 60%, rgba(99, 48, 96, 0.22), transparent 70%),
    #020010;
  padding-block: 115px 120px;
  overflow: hidden;
}

.automation-proof__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-proof__header {
    max-width: 1080px;
    margin: 0 auto 51px;
    text-align: center;
}

.automation-proof__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #cab5ff;
}

.automation-proof__heading {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 76px;
    line-height: 86px;
    letter-spacing: -3.46px;
    color: #fff;
}

.automation-proof__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.8vw, 54px);
}

.automation-proof__dots {
  display: none;
}

.automation-proof__card {
    display: flex;
    flex-direction: column;
    background-color: #100A21;
    border: 1px solid #a872d84d;
    border-radius: 20px;
    padding: 30px;
}

.automation-proof__card-heading {
    margin: 0 0 14px;
    font-family: var(--font-base);
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    transition: transform 0.3s ease;
}

.automation-proof__card-desc {
    margin: 0 0 30px;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
    max-width: 315px;
}

.automation-proof__card:hover .automation-proof__card-heading {
  transform: translateY(-6px);
}

.automation-proof__card:hover .automation-proof__card-desc {
  transform: translateY(-4px);
}

/* ---- shared illustration mock shell ---- */
.proof-mock {
    position: relative;
    width: 100%;
    aspect-ratio: 384 / 260;
    background: #0e0b13;
    border: 1px solid #3D2958;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s ease;
    background-image: radial-gradient(70% 50% at 50% -6%, #8033a24d 0%, #2f133c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.automation-proof__card:hover .proof-mock {
  transform: scale(1.04);
}

.proof-mock__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 114, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 114, 216, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.proof-mock__glow {
  position: absolute;
  left: -20%;
  bottom: -60%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 59, 255, 0.35), transparent 70%);
}

.proof-mock__chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #321042;
  border: 1px solid #ac3bff;
  border-radius: 24%;
  box-shadow: 0 4px 13px rgba(130, 86, 239, 0.1), 0 9px 5px rgba(130, 86, 239, 0.02);
  flex-shrink: 0;
}

/* ---- Card 1: pick one task ---- */
.proof-mock--pick .proof-mock__list {
  position: absolute;
  left: 8%;
  top: 22%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 42%;
  background: #18121f;
  border: 1px solid #3d2958;
  border-radius: 10px;
  padding: 12px 10px;
}

.proof-mock__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-mock__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

.proof-mock__row--active {
  background: #24142d;
  border: 1px solid #664479;
  border-radius: 6px;
  margin-inline: -6px;
  padding: 4px 12px 4px 6px;
}

.proof-mock__row--active .proof-mock__check {
  opacity: 1;
}

.proof-mock__bar {
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: #3a3340;
}

.proof-mock__row--active .proof-mock__bar {
  background: #c2a5fb;
}

.proof-mock__chip--pick {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  width: 17%;
  aspect-ratio: 1;
}

.proof-mock__connector {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 20%;
  height: 30%;
  border: 1px dashed rgba(161, 0, 255, 0.4);
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 14px;
}

/* ---- Card 2: we automate it ---- */
.proof-mock--build .proof-mock__flow {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8%;
  width: 88%;
}

.proof-mock__flow-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #18121f;
  border: 1px solid #3d2958;
  border-radius: 10px;
  padding: 16px 14px;
}

.proof-mock__flow-bar {
  height: 7px;
  width: 70%;
  border-radius: 10px;
  background: #3a3340;
}

.proof-mock__flow-bar--accent {
  width: 100%;
  background: #c2a5fb;
}

.proof-mock__flow-line {
  flex: 0 0 clamp(16px, 3vw, 30px);
  height: 1px;
  border-top: 1px dashed rgba(161, 0, 255, 0.4);
}

.proof-mock--build .proof-mock__chip {
  width: 17%;
  aspect-ratio: 1;
}

.proof-mock__bars--corner {
  position: absolute;
  right: 8%;
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 30%;
}

.proof-mock__bars--corner span {
  width: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #af6ccf, #321042);
}

.proof-mock__bars--corner span:nth-child(1) { height: 35%; }
.proof-mock__bars--corner span:nth-child(2) { height: 55%; }
.proof-mock__bars--corner span:nth-child(3) { height: 78%; }
.proof-mock__bars--corner span:nth-child(4) { height: 100%; }

/* ---- Card 3: measure the win ---- */
.proof-mock__bars--tall {
  position: absolute;
  right: 10%;
  bottom: 10%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 46%;
}

.proof-mock__bars--tall span {
  width: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #af6ccf, #321042);
}

.proof-mock__bars--tall span:nth-child(1) { height: 28%; }
.proof-mock__bars--tall span:nth-child(2) { height: 50%; }
.proof-mock__bars--tall span:nth-child(3) { height: 74%; }
.proof-mock__bars--tall span:nth-child(4) { height: 100%; }

.proof-mock__stat {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  background: #18121f;
  border: 1px solid #3d2958;
  border-radius: 10px;
  padding: 14px;
}

.proof-mock__stat-label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: -0.02em;
  color: #c2a5fb;
}

.proof-mock__stat-value {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: #fff;
}

.proof-mock__stat-value em {
  font-style: normal;
  font-size: 14px;
  margin-left: 4px;
  color: #fff;
}

.proof-mock__stat-delta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #3d2958;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: #31a873;
}

@media (prefers-reduced-motion: reduce) {
  .automation-proof * {
    animation: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .automation-proof__list {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .automation-proof {
    padding-block: 64px;
  }

  .automation-proof__header {
    margin-bottom: 32px;
  }

  .automation-proof__list {
    display: flex;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-padding-inline);
    padding-bottom: 8px;
    margin-inline: calc(var(--container-padding-inline) * -1);
    padding-inline: var(--container-padding-inline);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .automation-proof__list::-webkit-scrollbar {
    display: none;
  }

  .automation-proof__card {
    flex: 0 0 272px;
    scroll-snap-align: start;
    padding: 20px;
    border-radius: 16px;
  }

  .automation-proof__card-heading {
    font-size: 16px;
    margin-bottom: 10px;
  }

.automation-proof__card-desc {
    font-size: 14px;
    margin-bottom: 18px;
}

  .automation-proof__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }

  .automation-proof__dots button {
    padding: 0;
    border: 0;
    background-color: rgba(255, 255, 255, 0.24);
    width: 10px;
    height: 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
  }

  .automation-proof__dots button.is-active {
    width: 32px;
    background-color: #ac3bff;
  }
}

@media (max-width: 479px) {
  .automation-proof__card {
    flex-basis: 252px;
  }
}

/* ==========================================================================
   Automation page — Watch the demos (real-world automations)
   ========================================================================== */
.automation-demos {
    position: relative;
    background-color: #ffffff;
    padding-block: 120px 120px;
}

.automation-demos__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-demos__grid {
  display: grid;
  grid-template-columns: minmax(280px, 408px) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 164px);
  align-items: start;
}

.automation-demos__sidebar {
  position: sticky;
  top: clamp(96px, 10vw, 140px);
  min-width: 0;
}

.automation-demos__eyebrow {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2.86px;
    text-transform: uppercase;
    color: #9a60fb;
    margin: 0 0 20px;
}

.automation-demos__heading {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 79px;
    color: #171717;
    margin: 0 0 38px;
}

.automation-demos__heading em {
    font-weight: 300;
    color: #9a60fa;
    font-style: normal;
}

.automation-demos__nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.automation-demos__nav-item {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-top: 1px solid rgba(23, 23, 23, 0.1);
    padding: 29px 0 29px 20px;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    color: rgba(23, 23, 23, 0.48);
    cursor: pointer;
    transition: color 0.25s ease;
}

.automation-demos__nav:last-child,
.automation-demos__nav-item:last-child {
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.automation-demos__nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    width: 5px;
    height: 55px;
    background: linear-gradient(180deg, #b96cff, #6c3df0);
    border-radius: 0;
    transition: transform 0.25s ease;
}
.automation-demos__nav-item.is-active:before {
    transform: translateY(-50%) scaleY(100%);
}

.automation-demos__nav-item.is-active {
  color: #171717;
  font-weight: 600;
}


.automation-demos__nav-item:hover:not(.is-active),
.automation-demos__nav-item:focus-visible:not(.is-active) {
  color: rgba(23, 23, 23, 0.75);
}

.automation-demos__nav-item:hover:not(.is-active)::before,
.automation-demos__nav-item:focus-visible:not(.is-active)::before {
  transform: translateY(-50%) scaleY(0.4);
}

.automation-demos__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.automation-demos__card {
  background-color: #0f0821;
  border: 1px solid #dcdade;
  border-radius: 28px;
  padding: clamp(18px, 2vw, 24px);
  min-width: 0;
}

.automation-demos__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.automation-demos__card-head > div {
  min-width: 0;
}

.automation-demos__card-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(16px, 1vw + 10px, 20px);
  color: #ffffff;
  margin: 0 0 10px;
}

.automation-demos__card-desc {
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 52ch;
}

.automation-demos__view-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 12px;
  color: #b96cff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.automation-demos__view-more:hover,
.automation-demos__view-more:focus-visible {
  color: #ffffff;
}

.automation-demos__body {
  position: relative;
  background: linear-gradient(120deg, #f0ebfb 1%, #cdbff8 95%);
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 36px);
  min-height: clamp(260px, 30vw, 455px);
  display: flex;
  align-items: center;
  min-width: 0;
}

#demo-customer-support .automation-demos__body {
  background: #e4ebff;
}

#demo-call-summary .automation-demos__body {
  background: linear-gradient(61deg, #c8e4fb 4%, #d7d4fd 110%);
}

/* ---- Demo 1: Lead Qualification mockup ---- */
.demo-lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(40px, 91px) minmax(0, 245px);
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.demo-lead__form {
  background-color: #fbfbfc;
  border: 1px solid #ebebf0;
  border-radius: 16px;
  padding: 20px;
}

.demo-lead__field-label {
  font-size: 11px;
  font-weight: 700;
  color: #323152;
  margin: 0 0 8px;
}

.demo-lead__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fbfbfc;
  border: 1px solid #ebebf0;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: rgba(50, 49, 82, 0.7);
  margin-bottom: 16px;
  min-width: 0;
}

.demo-lead__field-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-lead__field--pw {
  color: #323152;
}

.demo-lead__dots {
  display: inline-block;
  width: 60%;
  height: 5px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #323152 0 4px, transparent 4px 8px);
}

.demo-lead__submit {
  display: block;
  text-align: center;
  background: #543582;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px;
}

.demo-lead__connector {
  display: block;
  align-self: stretch;
  min-width: 0;
}

.demo-lead__connector-trunk,
.demo-lead__connector-line {
  fill: none;
  stroke: rgba(84, 53, 130, 0.35);
  stroke-width: 1;
  stroke-dasharray: 2.2 3.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.demo-lead__connector-dot {
  fill: rgba(84, 53, 130, 0.55);
}

.demo-lead__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 64px;
}

.demo-lead__step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-lead__step-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fbfafd;
  border: 1px solid #e1dcf9;
  box-shadow: 0 4px 13px rgba(130, 86, 239, 0.1), 0 9px 3px rgba(130, 86, 239, 0.02);
}

.demo-lead__step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.demo-lead__step-text span {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
}

.demo-lead__step-text em {
  font-style: normal;
  font-size: 11px;
  color: #3d3d3d;
}

.demo-lead__play {
  position: absolute;
  right: clamp(-8px, -1vw, 12px);
  top: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(84, 53, 130, 0.08);
  backdrop-filter: blur(6px);
}

.demo-lead__play::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(84, 53, 130, 0.12);
}

.demo-lead__play svg {
  position: relative;
  z-index: 1;
}

.demo-lead__play svg path {
  fill: #543582;
}

/* ---- Demo 2: Customer Support mockup ("Waitlist" panel, per Figma) ---- */
.demo-support {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.demo-support__panel {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 14px;
  padding: clamp(14px, 2vw, 23px) clamp(10px, 1.4vw, 14px) clamp(12px, 1.6vw, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 17px);
  box-shadow: 0 10px 30px rgba(38, 58, 110, 0.08);
}

.demo-support__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(6px, 1vw, 15px);
}

.demo-support__panel-title {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: clamp(14px, 1vw + 8px, 16px);
  color: #263a6e;
}

.demo-support__chevron {
  flex: 0 0 auto;
}

.demo-support__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-support__search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfbfc;
  border: 1px solid #ebebf0;
  border-radius: 10px;
  padding: 9px 13px;
  color: rgba(50, 49, 82, 0.4);
  font-family: var(--font-base);
  font-size: clamp(10px, 0.6vw + 8px, 11px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-support__search svg {
  flex: 0 0 auto;
  color: rgba(50, 49, 82, 0.4);
}

.demo-support__filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #32817d;
  border-radius: 9px;
  padding: 8px 14px;
  color: #32817d;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.demo-support__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-support__row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px clamp(10px, 1.6vw, 16px);
  min-width: 0;
}

.demo-support__row--active {
  background: #4269dd;
  border-color: #4269dd;
  box-shadow: 0 0 12px rgba(66, 105, 221, 0.55);
}

.demo-support__rank {
  flex: 0 0 auto;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 12px;
  color: #404040;
}

.demo-support__row--active .demo-support__rank {
  color: #ffffff;
}

.demo-support__avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.demo-support__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-support__person {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-support__name {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 13px;
  color: #4269dd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-support__row--active .demo-support__name {
  color: #ffffff;
}

.demo-support__role {
  font-family: var(--font-base);
  font-size: 10px;
  color: #323152;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-support__row--active .demo-support__role {
  color: rgba(255, 255, 255, 0.85);
}

.demo-support__meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.demo-support__wait-label {
  font-family: var(--font-base);
  font-size: 11px;
  color: #323152;
  white-space: nowrap;
}

.demo-support__wait-time {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 11px;
  color: #323152;
  white-space: nowrap;
}

.demo-support__row--active .demo-support__wait-label,
.demo-support__row--active .demo-support__wait-time {
  color: #ffffff;
}

/* ---- Demo 3: Invoice Processing mockup ---- */
.demo-invoice {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 13px rgba(130, 86, 239, 0.1), 0 9px 5px rgba(130, 86, 239, 0.02);
}

.demo-invoice__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: #3d3d3d;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.demo-invoice__row--head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: #2c3468;
  border-radius: 16px 16px 0 0;
}

.demo-invoice__row--head span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-invoice__sort {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.demo-invoice__patient {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-invoice__avatar {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.demo-invoice__pill {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.demo-invoice__pill--paid {
  background: rgba(16, 163, 74, 0.12);
  color: #15803d;
}

.demo-invoice__pill--pending {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

/* ---- Demo 4: Call Summary mockup ---- */
.demo-call {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 4px 13px rgba(130, 86, 239, 0.1), 0 9px 5px rgba(130, 86, 239, 0.02);
}

.demo-call__info {
  flex: 1 1 140px;
  min-width: 140px;
}

.demo-call__number {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 700;
  color: #323152;
  margin: 0 0 4px;
}

.demo-call__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #323152;
  margin: 0;
}

.demo-call__name svg {
  flex-shrink: 0;
  color: #323152;
}

.demo-call__timer {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 400;
  color: rgba(50, 49, 82, 0.5);
  letter-spacing: 0.02em;
  margin: 0;
  flex: 0 0 auto;
}

.demo-call__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.demo-call__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eff0f2;
  color: #323152;
}

.demo-call__end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f62929;
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  flex: 0 0 auto;
}

/* ---- Tablet: 768–1023px ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .automation-demos__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .automation-demos__sidebar {
    position: static;
  }

  .automation-demos__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    border-top: none;
  }

  .automation-demos__nav-item {
    width: auto;
    border: none;
    padding: 8px 0 12px;
    font-size: 14px;
  }

  .automation-demos__nav-item::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 6px;
    transform: none;
    background: rgba(23, 23, 23, 0.12);
  }

  .automation-demos__nav-item.is-active {
    background: none;
    border-color: transparent;
  }

  .automation-demos__nav-item.is-active::before {
    background: linear-gradient(90deg, #b96cff, #6c3df0);
  }

  .automation-demos__nav:last-child,
  .automation-demos__nav-item:last-child {
    border-bottom: 1px solid rgba(23, 23, 23, 0.16);
  }

  .demo-lead {
    grid-template-columns: minmax(0, 220px) minmax(28px, 56px) minmax(0, 1fr);
  }

  .demo-lead__steps {
    padding-right: 0;
  }
}

/* ---- Small desktop bridge: the sidebar+list grid in .automation-demos__grid
   leaves too little room for the demo-lead fixed min-widths right at 1024–1279px ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .automation-demos__grid {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 40px;
  }

  .demo-lead {
    grid-template-columns: minmax(0, 220px) minmax(28px, 56px) minmax(0, 1fr);
  }

  .demo-lead__steps {
    padding-right: 44px;
  }

  .demo-lead__play {
    width: 44px;
    height: 44px;
  }
}

/* ---- Mobile: ≤767px (true tab component, one panel visible at a time) ---- */
@media (max-width: 767px) {
  .automation-demos {
    padding-block: 64px;
}

  .automation-demos__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .automation-demos__sidebar {
    position: static;
  }

.automation-demos__heading {
    font-size: 36px;
    line-height: 37px;
    text-align: center;
    max-width: 228px;
    margin: 0 auto 32px;
}

  .automation-demos__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    border-top: none;
    margin-inline: calc(var(--container-padding-inline) * -1);
    padding-inline: var(--container-padding-inline);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .automation-demos__nav::-webkit-scrollbar {
    display: none;
  }

.automation-demos__nav-item {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border: none;
    font-size: 16px;
    padding: 10px 0 20px;
    font-weight: 500;
    line-height: 120%;
}

  .automation-demos__nav-item::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 6px;
    transform: none;
    background: rgba(23, 23, 23, 0.12);
  }

  .automation-demos__nav-item.is-active {
    background: none;
    border-color: transparent;
    color: #171717;
  }

  .automation-demos__nav-item.is-active::before {
    background: linear-gradient(90deg, #b96cff, #6c3df0);
  }

  .automation-demos__nav:last-child,
  .automation-demos__nav-item:last-child {
    border-bottom: 1px solid rgba(23, 23, 23, 0.16);
  }

  .automation-demos__card {
    border-radius: 18px;
    padding: 16px;
  }

  .automation-demos__card-head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .automation-demos__view-more {
    align-self: flex-start;
  }

  .automation-demos__body {
    padding: 20px 16px;
    min-height: 0;
    border-radius: 14px;
  }

  .demo-lead {
    grid-template-columns: minmax(0, 0.9fr) minmax(10px, 18px) minmax(0, 1fr);
  }

  .demo-lead__form {
    padding: 14px;
  }

  .demo-lead__field {
    padding: 10px;
    margin-bottom: 12px;
  }

  .demo-lead__field-label {
    margin-bottom: 6px;
  }

  .demo-lead__submit {
    padding: 10px;
  }

  .demo-lead__steps {
    gap: 10px;
    padding-right: 0;
  }

  .demo-lead__step {
    gap: 8px;
    background: #fbfbfc;
    border: 1px solid #ebebf0;
    border-radius: 12px;
    padding: 8px;
  }

  .demo-lead__step-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: none;
  }

  .demo-lead__step-icon img {
    width: 13px;
    height: 13px;
  }

  .demo-lead__step-text span {
    font-size: 10px;
  }

  .demo-lead__step-text em {
    font-size: 8px;
    line-height: 1.3;
  }

  .demo-lead__play {
    display: none;
  }

  .demo-invoice__row {
    grid-template-columns: repeat(6, minmax(84px, 1fr));
  }

  .demo-call {
    max-width: 260px;
    padding: 22px 18px;
  }
}

/* ---- Small phone: ≤479px ---- */
@media (max-width: 479px) {

  .automation-demos__card-title {
    font-size: 16px;
  }

.automation-demos__card-desc {
    font-size: 14px;
}

  .demo-lead {
    grid-template-columns: minmax(0, 1fr) minmax(10px, 18px) minmax(0, 1fr);
  }

  .demo-lead__form {
    padding: 10px;
  }

  .demo-lead__field-label {
    font-size: 10px;
  }

  .demo-lead__field {
    padding: 8px;
    font-size: 11px;
  }

  .demo-lead__submit {
    font-size: 12px;
    padding: 9px;
  }

  .demo-support__panel {
    padding-inline: 8px;
  }

  .demo-support__toolbar {
    flex-wrap: wrap;
  }

  .demo-support__search {
    flex: 1 1 100%;
  }

  .demo-support__row {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .demo-support__meta {
    margin-left: calc(36px + clamp(8px, 1.4vw, 16px));
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
  }

  .demo-call__timer {
    font-size: 22px;
  }
}

/* ==========================================================================
   Automation page — Built for your Business (two-card panel)
   ========================================================================== */
.automation-built {
    position: relative;
    background-color: #ffffff;
    padding-block: 118px 120px;
}

.automation-built__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-built__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.automation-built__eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #9a60fb;
  margin: 0 0 16px;
}

.automation-built__heading {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 78.3px;
    color: #171717;
    margin: 0;
}

.automation-built__panel {
    display: flex;
    align-items: stretch;
    background-color: #200d2a;
    border-radius: 10px;
    border: 10px solid #ffffff1a;
}

.automation-built__card {
    flex: 1 1 0;
    min-width: 0;
    padding: 54px 39px 60px 48px;
}

.automation-built__divider {
  flex: none;
  width: 1px;
  align-self: stretch;
  margin-block: 40px;
  background-color: rgba(217, 217, 217, 0.1);
}
.automation-built__divider:after {
    content: '';
    width: 10px;
    position: absolute;
    background: #ffffff1a;
    height: 100%;
    top: 0;
    bottom: 0;
}

.automation-built__card-text {
    margin: 0 0 50px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: #ffffff;
    letter-spacing: 0;
    max-width: 550px;
}

.automation-built__card-text em {
  font-style: normal;
  color: #af80f5;
}

.automation-built__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.automation-built__pills li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background-color: rgba(84, 53, 130, 0.15);
    border: 1px solid rgba(175, 128, 245, 0.1);
    border-radius: 20px;
    font-family: var(--font-mono-label);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.automation-built__pills li:hover {
  background-color: rgba(154, 96, 251, 0.55);
  border-color: #b96cff;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(185, 108, 255, 0.3), 0 8px 20px rgba(120, 60, 200, 0.35);
}

.automation-built__pills li img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.automation-built__pills li:hover img {
  transform: scale(1.15) rotate(-8deg);
}

/* ==========================================================================
   Automation page — Proven Delivery / Automation at Scale
   ========================================================================== */
.automation-scale {
    position: relative;
    overflow: hidden;
    background-color: #0a0518;
    padding-block: 118px 111px;
}

.automation-scale__glow {
  position: absolute;
  top: -20%;
  right: calc((100% - min(100%, var(--container-max-width))) / 2 - (min(100%, var(--container-max-width)) * 0.1));
  width: clamp(280px, 40vw, 620px);
  height: clamp(280px, 40vw, 620px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 92, 231, 0.32), transparent 70%);
  pointer-events: none;
}

.automation-scale__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-scale__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(48px, 7vw, 96px);
}

.automation-scale__eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.86px;
  text-transform: uppercase;
  color: #cab5ff;
  margin: 0 0 16px;
}

.automation-scale__heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 78.3px;
    color: #ffffff;
    margin: 0;
}

.automation-scale__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
}

.automation-scale__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.automation-scale__bar {
    width: 57px;
    height: 5px;
    border-radius: 3px;
    background-color: #af80f5;
    margin-bottom: 15px;
}

.automation-scale__value {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: clamp(36px, 2.4vw + 22px, 56px);
    letter-spacing: -3.46px;
    line-height: 78.3px;
    color: #ffffff;
    margin: 0 0 9px;
}

.automation-scale__desc {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 340px;
}

@media (max-width: 1023px) {
  .automation-scale__list {
    grid-template-columns: 1fr;
    gap: 34px;
}

  .automation-scale__desc {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
.automation-scale__value {
    font-size: 48px;
    line-height: normal;
}

.automation-scale__desc {
    font-size: 14px;
    line-height: 24px;
    color: #e6e8f4;
    font-weight: 400;
}
}

/* ---- Tablet: 768–1023px ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .automation-built__card {
    padding: clamp(32px, 4.5vw, 40px) clamp(24px, 3.5vw, 32px);
  }

  .automation-built__card-text {
    font-size: clamp(20px, 2.6vw, 24px);
  }

  .automation-built__pills li {
    font-size: 14px;
    padding: 8px 12px 8px 9px;
  }
}

/* ---- Mobile: ≤767px ---- */
@media (max-width: 767px) {
.automation-built {
    padding-block: 64px;
}

  .automation-built__header {
    margin-bottom: 29px;
  }

.automation-built__heading {
    font-size: 36px;
    letter-spacing: -2px;
    line-height: 37px;
    max-width: 300px;
    margin-inline: auto;
}

  .automation-built__panel {
    flex-direction: column;
    background-color: #36253f;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
    border: none;
  }

  .automation-built__card {
    flex: none;
    background-color: #200d2a;
    border-radius: 10px;
    padding: 16px 16px 20px;
  }

  .automation-built__divider {
    display: none;
  }

  .automation-built__card-text {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .automation-built__pills {
    gap: 10px;
  }

  .automation-built__pills li {
    padding: 8px 12px 8px 10px;
    font-size: 13px;
    gap: 8px;
  }

  .automation-built__pills li img {
    width: 16px;
    height: 16px;
  }
}

/* ---- Small phone: ≤479px ---- */
@media (max-width: 479px) {
.automation-built__card-text {
    font-size: 20px;
    line-height: 26px;
}

.automation-built__pills li {
    font-size: 12px;
    padding: 4px 9px 3px 9px;
}
}

/* ==========================================================================
   Automation page — Use Cases (scrolling pill marquee)
   ========================================================================== */
.automation-usecases {
    background-color: #ffffff;
    padding-block: 120px;
    overflow: hidden;
}

.automation-usecases__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

.automation-usecases__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.automation-usecases__eyebrow {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.86px;
    text-transform: uppercase;
    color: #9a60fb;
    margin: 0 0 30px;
}

.automation-usecases__heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 76px;
    letter-spacing: -3.46px;
    line-height: 66px;
    color: #171717;
    margin: 0;
}

.automation-usecases__marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.automation-usecases__row {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

.automation-usecases__track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: automation-usecases-scroll 34s linear infinite;
}

.automation-usecases__row:hover .automation-usecases__track {
  animation-play-state: paused;
}

.automation-usecases__row--reverse .automation-usecases__track {
  animation-direction: reverse;
}

.automation-usecases__pills {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.automation-usecases__pills li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid #dadada;
    background-color: rgba(245, 243, 248, 0.16);
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 14px;
    color: #171717;
    white-space: nowrap;
    line-height: normal;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.automation-usecases__pills li:hover {
  background-color: #9a60fb;
  border-color: #b96cff;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(185, 108, 255, 0.3), 0 8px 20px rgba(120, 60, 200, 0.35);
}

@keyframes automation-usecases-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-usecases__track {
    animation: none;
  }
}

@media (max-width: 1023px) {
  .automation-usecases__header {
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
.automation-usecases {
    padding-block: 64px;
}

  .automation-usecases__header {
    margin-bottom: 28px;
  }

.automation-usecases__heading {
    font-size: 36px;
    letter-spacing: -2px;
    line-height: 37px;
}

  .automation-usecases__marquee {
    gap: 12px;
  }

  .automation-usecases__row {
    -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
    mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  }

  .automation-usecases__track {
    gap: 12px;
    animation-duration: 26s;
  }

  .automation-usecases__pills {
    gap: 12px;
  }

  .automation-usecases__pills li {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 12px;
}
}

/* ==========================================================================
   Automate What Matters Most (CTA banner)
   ========================================================================== */

.automation-cta {
  background: #ffffff;
  padding: clamp(48px, 7vw, 96px) 0;
}

.automation-cta__container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 0;
}

.automation-cta__panel {
  max-width: 1265px;
  margin-inline: auto;
  background: #f6e339;
  border-radius: 10px;
  padding: clamp(40px, 6vw, 91px) clamp(24px, 7vw, 97px) clamp(40px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vw, 32px);
}

.automation-cta__eyebrow {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #171717;
  margin: 0;
}

.automation-cta__heading {
    font-family: var(--font-base);
    font-weight: 900;
    font-size: clamp(32px, 3.2vw + 20px, 63px);
    line-height: 71px;
    letter-spacing: -0.02em;
    color: #171717;
    max-width: 900px;
    margin: 0;
}

.automation-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 36px;
    background: #543582;
    color: #ffffff;
    font-family: var(--font-mono-label);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 2px;
}

.automation-cta__button:hover,
.automation-cta__button:focus-visible {
  transform: scale(1.08);
}

.automation-cta__button-arrow {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .automation-cta {
    padding: 64px 0;
  }

  .automation-cta__container {
    padding-inline: 15px;
  }

  .automation-cta__panel {
    max-width: none;
    border-radius: 8px;
    padding: 40px 15px;
    gap: 24px;
  }

  .automation-cta__eyebrow {
    font-size: 12px;
  }

  .automation-cta__heading {
    font-weight: 700;
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.19;
    letter-spacing: -0.02em;
    color: #0e1014;
    max-width: none;
  }

  .automation-cta__button {
    width: 100%;
    padding: 17px 24px;
    white-space: normal;
    text-align: center;
}
}

/*Custom Responsive Css by TBI*/
@media (max-width: 767px) {
.automation-hero {
    padding-block: 50px 50px;
}
.automation-hero__eyebrow {
    margin: 0 0 16px;
}
.automation-hero__heading {
    font-size: 36px;
    line-height: 40px;
    margin: 0 0 16px;
}
.automation-hero__description {
    font-size: 16px;
    line-height: 25px;
    font-weight: 400;
}
.automation-why {
    padding-block: 64px;
}
.automation-why__heading {
    font-size: 36px;
    line-height: 38px;
    letter-spacing: -2px;
}
.automation-platform {
    padding: 64px 0;
}
.automation-platform__core-label {
    margin: 0 0 20px;
}
.automation-platform__core-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}
.automation-demos__eyebrow {
    font-size: 12px;
    letter-spacing: 2.86px;
    line-height: normal;
    font-weight: 500;
    text-align: center;
    margin: 0 0 16px;
}
.automation-proof__eyebrow {
    margin: 0 0 15px;
    font-weight: 500;
}
.automation-proof__heading {
    font-size: 36px;
    line-height: 37px;
    max-width: 340px;
    margin-inline: auto;
}
.automation-proof__card {
    transform: translateY(0) !important;
}
.automation-proof__card {
    flex-basis: 100%;
}
.automation-scale {
    padding-block: 64px;
}
.automation-scale__eyebrow {
    font-size: 12px;
    font-weight: 500;
}
.automation-scale__heading {
    font-size: 36px;
    line-height: 37px;
    letter-spacing: -2px;
}
.automation-scale__bar {
    margin-bottom: 12px;
}
.automation-usecases__eyebrow {
    font-size: 12px;
    line-height: normal;
    font-weight: 500;
    margin: 0 0 14px;
}
.automation-platform__heading {
    font-size: 36px;
    line-height: 37px;
    letter-spacing: -2px;
}
.automation-built__eyebrow {
    font-weight: 500;
}

}

/* Touch devices should not retain desktop hover transforms after a tap. */
@media (hover: none) and (pointer: coarse) {
  .automation-why__card:hover .automation-why__illustration,
  .automation-why__card:hover .automation-why__card-eyebrow,
  .automation-why__card:hover .automation-why__card-heading,
  .automation-why__card:hover .automation-why__card-description,
  .automation-proof__card:hover .proof-mock,
  .automation-proof__card:hover .automation-proof__card-heading,
  .automation-proof__card:hover .automation-proof__card-desc,
  .automation-cta__button:hover,
  .automation-built__pills li:hover img,
  .automation-platform__item:hover .automation-platform__item-icon img {
    transform: none;
  }
}

/* ==========================================================================
   Automation page — hover-effect reduced-motion overrides
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .automation-why__card:hover .automation-why__illustration,
  .automation-why__card:hover .automation-why__card-eyebrow,
  .automation-why__card:hover .automation-why__card-heading,
  .automation-why__card:hover .automation-why__card-description,
  .automation-platform__cta--primary:hover,
  .automation-platform__cta--primary:focus-visible,
  .automation-platform__cta--secondary:hover,
  .automation-platform__cta--secondary:focus-visible,
  .automation-cta__button:hover,
  .automation-cta__button:focus-visible,
  .automation-proof__card:hover .proof-mock,
  .automation-proof__card:hover .automation-proof__card-heading,
  .automation-proof__card:hover .automation-proof__card-desc,
  .automation-built__pills li:hover img,
  .automation-platform__item:hover .automation-platform__item-icon img {
    transform: none;
  }

  .automation-demos__nav-item:hover:not(.is-active)::before,
  .automation-demos__nav-item:focus-visible:not(.is-active)::before {
    transform: translateY(-50%) scaleY(0);
  }
}
