/* Homepage blocks — layout only; typography via 03-patterns.css */

.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  padding: var(--d-10);
  background: var(--surface);
}

.home-hero .container {
  display: flex;
  justify-content: center;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--d-10);
  max-width: var(--width-display);
  text-align: center;
}

.home-hero__content .eyebrow {
  max-width: 17.1875rem;
}

.home-hero__content .display {
  max-width: var(--width-display);
  text-align: center;
}

.home-hero__content .h2 {
  max-width: var(--width-body);
  text-align: center;
}

@media (max-width: 40rem) {
  .home-hero {
    min-height: calc(100vh - 5rem);
    padding: var(--d-8) var(--d-10);
  }

  .home-hero__content {
    gap: var(--d-8);
  }
}

/* Trusted by — Figma 1612:59955 (desktop), 1612:60247 (mobile) */

.home-trusted {
  padding-block-start: var(--d-20);
  padding-block-end: var(--space-home-trusted-bottom);
  padding-inline: var(--d-4);
  background: var(--surface);
}

.home-trusted .container {
  display: flex;
  flex-direction: column;
  gap: var(--d-6);
}

.home-trusted__logos--desktop {
  display: none;
}

.home-trusted__logos--mobile {
  display: flex;
  flex-direction: column;
  gap: var(--d-6);
}

.home-trusted__row {
  display: flex;
  align-items: stretch;
  gap: var(--d-2);
  min-height: 3.75rem;
}

.home-trusted__cell {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.home-trusted__logo {
  display: block;
  width: var(--d-16);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
}

.home-trusted__logo[src*="salesforce"],
.home-trusted__logo[src*="elastic"] {
  filter: none;
}

.home-trusted__logo--sm {
  width: var(--d-10);
}

@media (min-width: 56.25rem) {
  .home-trusted {
    padding-inline: var(--d-10);
  }

  .home-trusted__logos--desktop {
    display: block;
  }

  .home-trusted__logos--mobile {
    display: none;
  }

  .home-trusted__row {
    min-height: 7.9375rem;
  }

  .home-trusted__logo {
    width: 6rem;
  }

  .home-trusted__logo--sm {
    width: 4rem;
  }
}

/* Quote — Figma 1486:24269 */

.home-quote {
  padding: var(--d-3);
  background: var(--surface);
}

.home-quote__panel {
  width: 100%;
  min-height: 42.75rem;
  padding: 12.25rem var(--d-8);
  border-radius: var(--radius-lg);
  background: url("/images/grainy-background-02.png") center / cover no-repeat;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
}

.home-quote__inner {
  display: flex;
  gap: var(--d-16);
  align-items: flex-start;
}

.home-quote__quote {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--d-10);
  min-width: 0;
  margin: 0;
}

.home-quote__text {
  margin: 0;
}

.home-quote__attribution {
  display: flex;
  gap: var(--d-6);
  align-items: center;
}

.home-quote__photo {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.63625rem;
  background: var(--color-grey-300);
}

.home-quote__attribution-text {
  display: flex;
  flex-direction: column;
  gap: var(--d-0_5);
}

.home-quote__name,
.home-quote__role {
  margin: 0;
}

.home-quote__role {
  color: var(--color-grey-600);
}

.home-quote__aside {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: var(--d-3);
  align-items: center;
  width: 14.75rem;
}

.home-quote__aside-label {
  width: 100%;
  margin: 0;
  font-weight: 600;
}

.home-quote__card {
  position: relative;
  width: 100%;
  height: 14.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--d-4);
  background: var(--surface);
  box-shadow: 0 8px 56px rgba(87, 84, 80, 0.08);
}

.home-quote__card-content {
  display: flex;
  flex-direction: column;
  gap: var(--d-4);
  padding: 1.34375rem 1.21875rem 0;
}

.home-quote__card-thumb {
  width: 6.25rem;
  height: 3.75rem;
  border-radius: var(--radius);
  background: var(--color-grey-300);
}

.home-quote__card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--d-2);
}

.home-quote__card-title,
.home-quote__card-read-time {
  margin: 0;
}

.home-quote__card-read-time {
  color: var(--color-grey-600);
}

.home-quote__card-icon {
  position: absolute;
  right: 1rem;
  bottom: 0.96875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2.142875rem;
  background: var(--color-grey-300);
}

.home-quote__card-icon img {
  display: block;
  width: 1.0714375rem;
  height: 1.0714375rem;
}

@media (max-width: 40rem) {
  .home-quote__panel {
    min-height: auto;
    padding: var(--d-20) var(--d-4);
  }

  .home-quote__inner {
    flex-direction: column;
    align-items: center;
  }

  .home-quote__aside {
    width: 14.75rem;
  }
}

/* 3-up — Figma 1624:67968 (desktop), 1624:68088 (mobile) */

.home-three-up {
  padding-block-start: var(--space-home-three-up-top);
  padding-block-end: var(--space-home-three-up-bottom);
  padding-inline: var(--d-4);
  background: var(--surface);
}

.home-three-up .container {
  display: flex;
  flex-direction: column;
  gap: var(--d-6);
}

.home-three-up .block-header {
  gap: var(--d-10);
}

.home-three-up__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--d-6);
}

.home-three-up__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--d-14);
  min-width: 0;
}

.home-three-up__illustration {
  display: block;
  flex-shrink: 0;
  order: 2;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.home-three-up__copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 9px;
  order: 1;
  min-width: 0;
}

.home-three-up__label {
  margin: 0;
  color: var(--text-muted);
}

.home-three-up__text {
  margin: 0;
  font-family: var(--font-h4-mono-family);
  font-size: var(--font-h4-mono-size);
  font-weight: var(--font-h4-mono-weight);
  line-height: var(--font-h4-mono-line);
  letter-spacing: var(--font-h4-mono-tracking);
  color: var(--text);
}

.home-three-up__divider--horizontal {
  display: block;
}

.home-three-up__divider-col {
  display: none;
}

@media (min-width: 56.25rem) {
  .home-three-up {
    padding-inline: var(--d-10);
  }

  .home-three-up .container {
    gap: var(--d-10);
  }

  .home-three-up .block-header {
    gap: 0;
  }

  .home-three-up__grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
  }

  .home-three-up__item {
    flex: 0 0 18.75rem;
    flex-direction: column;
    gap: var(--d-4);
  }

  .home-three-up__illustration {
    order: 0;
    width: 7.5rem;
    height: 7.5rem;
  }

  .home-three-up__copy {
    order: 0;
    flex: none;
  }

  .home-three-up__text {
    font-family: var(--font-body-mono-family);
    font-size: var(--font-body-mono-size);
    font-weight: var(--font-body-mono-weight);
    line-height: var(--font-body-mono-line);
    letter-spacing: var(--font-body-mono-tracking);
  }

  .home-three-up__divider--horizontal {
    display: none;
  }

  .home-three-up__divider-col {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: center;
    min-width: 0;
  }

  .home-three-up__divider-col .dotted-divider--vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--divider-stroke-width, 1.2px);
    min-width: var(--divider-stroke-width, 1.2px);
    height: auto;
    transform: translateX(-50%);
  }
}

/* Case studies — Figma 1436:11633 */

.home-case-studies {
  padding-block-start: var(--space-home-case-studies-top);
  padding-block-end: var(--space-home-case-studies-bottom);
  padding-inline: var(--d-4);
  background: var(--surface);
}

.home-case-studies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--d-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-case-studies__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--d-6);
  min-height: 29.1875rem;
  padding: var(--d-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.home-case-studies__card:focus-visible {
  outline: 2px solid var(--brand-hover);
  outline-offset: 2px;
}

.home-case-studies__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .home-case-studies__image {
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .home-case-studies__card:hover .home-case-studies__image {
    transform: scale(1.06);
  }
}

.home-case-studies__logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  height: var(--d-10);
}

.home-case-studies__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--d-2);
}

.home-case-studies__title {
  margin: 0;
}

.home-case-studies__card--on-dark .home-case-studies__title {
  color: var(--color-grey-100);
}

.home-case-studies__read-time {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 40rem) {
  .home-case-studies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-case-studies__card {
    height: 17.5rem;
    min-height: 17.5rem;
  }
}

@media (min-width: 56.25rem) {
  .home-case-studies {
    padding-inline: var(--d-10);
  }
}

/* Features — Figma 1464:21761 */

.home-features {
  padding-block: var(--d-20);
  padding-inline: var(--d-3);
  background: var(--surface);
}

.home-features .container {
  display: flex;
  flex-direction: column;
  gap: var(--d-8);
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--d-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-features__grid > li {
  display: flex;
  min-height: 0;
}

.home-features__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 35.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--color-grey-300);
  overflow: hidden;
}

.home-features__card--connector {
  position: relative;
  background-color: var(--color-grey-300);
}

.home-features__card--connector::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/images/grainy-background-01.png") center / cover no-repeat;
  pointer-events: none;
}

.home-features__card-copy {
  position: relative;
  z-index: 1;
  padding: var(--d-8);
}

.home-features__card-description {
  display: flex;
  flex-direction: column;
  gap: var(--d-2);
  max-width: 31.25rem;
}

.home-features__card-label {
  margin: 0;
}

.home-features__card-body {
  margin: 0;
}

.home-features__card-media {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 25rem;
  background: var(--color-grey-300);
  overflow: hidden;
}

.home-features__grid > li:first-child .home-features__card,
.home-features__grid > li:first-child .home-features__card-media {
  background-color: var(--color-features-animation-bg);
}

.home-features__card-media:not(.home-features__card-media--connector) > video,
.home-features__card-media:not(.home-features__card-media--connector) > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-features__card-media--connector {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--d-6);
  background: transparent;
}

.home-features__connector-img {
  width: auto;
  max-width: min(100%, 30.5rem);
  height: auto;
}

@media (max-width: 40rem) {
  .home-features {
    padding-inline: var(--d-10);
  }

  .home-features__grid {
    grid-template-columns: 1fr;
  }

  .home-features__card {
    min-height: auto;
  }

  .home-features__card-media {
    min-height: 12rem;
  }
}

/* Compare — Figma 1773:13797 (desktop), 1776:14921 (tablet), 1773:14092 (mobile) */

.home-compare {
  padding-block: var(--d-20);
  padding-inline: var(--d-4);
  background: var(--surface);
}

.home-compare__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--d-10);
}

.home-compare__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--d-4);
  width: 100%;
}

.home-compare__eyebrow {
  margin: 0;
  text-align: center;
}

.home-compare__title {
  margin: 0;
}

.home-compare__prompt {
  margin: 0;
}

.home-compare__prompt--desktop {
  display: none;
}

.home-compare__prompt--mobile {
  max-width: 9.8125rem;
  text-align: center;
}

.home-compare__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--d-4);
}

.home-compare__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--d-2);
  width: 100%;
  max-width: 17.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-compare__buttons .btn {
  font-family: var(--font-meta-mono-family);
  font-size: var(--font-meta-mono-size);
  font-weight: var(--font-meta-mono-weight);
  line-height: var(--font-meta-mono-line);
  letter-spacing: var(--font-meta-mono-tracking);
}

@media (max-width: 39.99rem) {
  .home-compare__title {
    font-size: var(--font-display-s-size-mobile);
    line-height: calc(var(--font-display-s-line-mobile) / var(--font-display-s-size-mobile));
    letter-spacing: var(--font-display-s-tracking-mobile);
    text-align: center;
  }

  .home-compare__title .display--illustrated-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .home-compare__title .display--illustrated-mobile .display__line--with-art {
    --display-art-gap: var(--d-1);
    align-items: center;
    justify-content: center;
  }

  .home-compare__title .display--illustrated-mobile .display__line:not(.display__line--with-art) {
    flex: 0 0 100%;
    text-align: center;
  }

  .home-compare__title .display--illustrated-mobile .display__art-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 3rem;
  }

  .home-compare__title .display--illustrated-mobile .display__art {
    height: 3rem;
  }
}

@media (min-width: 40rem) {
  .home-compare {
    padding-inline: var(--d-8);
  }

  .home-compare__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--d-12);
  }

  .home-compare__header {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
  }

  .home-compare__eyebrow {
    text-align: left;
  }

  .home-compare__prompt--mobile {
    display: none;
  }

  .home-compare__prompt--desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--d-2);
    flex-shrink: 0;
    width: 9.8125rem;
  }

  .home-compare__prompt-text {
    margin: 0;
    text-align: center;
  }

  .home-compare__arrow {
    display: block;
    width: 3.0625rem;
    height: auto;
    margin-inline-start: auto;
  }

  .home-compare__aside {
    flex-direction: row;
    align-items: flex-end;
    flex-shrink: 0;
    gap: var(--d-2);
  }

  .home-compare__buttons {
    justify-content: flex-end;
    padding-inline-start: var(--d-8);
  }

  .home-compare__buttons li:nth-child(n + 4) {
    position: relative;
    inset-inline-start: calc(-1 * var(--d-8));
  }

  .home-compare__buttons .btn {
    font-family: var(--font-h4-family);
    font-size: var(--font-h4-size);
    font-weight: var(--font-h4-weight);
    line-height: var(--font-h4-line);
    letter-spacing: var(--font-h4-tracking);
  }

  .home-compare__title .display--illustrated-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-start;
  }

  .home-compare__title .display--illustrated-desktop .display__line {
    flex-shrink: 0;
  }

  .home-compare__title .display--illustrated-desktop .display__line--with-art {
    --display-art-gap: 0;
    align-items: center;
  }

  .home-compare__title .display--illustrated-desktop .display__art-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 1lh;
    padding-inline: var(--d-4);
  }

  .home-compare__title .display--illustrated-desktop .display__art {
    height: 4.5rem;
  }
}

@media (min-width: 56.25rem) {
  .home-compare {
    padding-inline: var(--d-10);
  }
}

/* Use cases — Figma 1447:12007 */

.home-use-cases {
  padding-block: var(--d-20);
  padding-inline: var(--d-10);
  background: var(--surface);
}

.home-use-cases .container {
  display: flex;
  flex-direction: column;
  gap: var(--d-8);
}

.home-use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--d-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-use-cases__card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--d-6);
  min-height: 26.25rem;
  padding: var(--d-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-use-cases__card--yellow {
  background: var(--surface-card-yellow);
}

.home-use-cases__card--neutral {
  background: var(--color-grey-300);
}

.home-use-cases__card--blue {
  background: var(--surface-card-blue);
}

.home-use-cases__header {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--d-4);
}

.home-use-cases__label {
  margin: 0;
  color: var(--text);
}

.home-use-cases__title {
  margin: 0;
}

.home-use-cases__features {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--d-3);
}

.home-use-cases__feature {
  display: flex;
  align-items: center;
  gap: var(--d-2);
  padding-inline: var(--d-1);
}

.home-use-cases__feature-text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.home-use-cases__check {
  flex-shrink: 0;
}

@media (max-width: 40rem) {
  .home-use-cases__grid {
    grid-template-columns: 1fr;
  }

  .home-use-cases__card {
    min-height: auto;
  }
}

