/* Card visuals from the previous homepage (redesign/scripts/extract-v1-cards.mjs). */


article.compliance-automation-feature {
  background-color: var(--feature-card-bg) !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

article.built-for-mobile-feature {
  background-color: var(--feature-card-bg) !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

article.built-for-mobile-feature .built-for-mobile-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 0;
}

.built-for-mobile-visual,
.enrollment-automation-visual {
  -webkit-mask-image: var(--feature-card-visual-mask);
  mask-image: var(--feature-card-visual-mask);
}

.built-for-mobile-visual {
  position: absolute;
  top: 0;
  right: -0.25rem;
  left: -0.25rem;
  bottom: 4.35rem;
  overflow: hidden;
  pointer-events: none;
}

.built-for-mobile-phone-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(17.25rem, 88%);
  transform: translateX(-50%) translateY(48%) scale(1.02);
  transform-origin: bottom center;
  transition: transform 0.4s ease-in-out;
}

article.built-for-mobile-feature:hover .built-for-mobile-phone-wrap,
article.built-for-mobile-feature:focus-within .built-for-mobile-phone-wrap {
  transform: translateX(-50%) translateY(48%) scale(1.03);
}

.built-for-mobile-phone {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.built-for-mobile-notifications {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  z-index: 30;
  display: flex;
  width: 11.5rem;
  max-width: 88%;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  transform: translateX(-50%) translateY(3.5rem) scale(0.98);
  transform-origin: bottom center;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1.08, 0.42, 1),
    transform 0.45s cubic-bezier(0.22, 1.08, 0.42, 1),
    width 0.45s cubic-bezier(0.22, 1.08, 0.42, 1);
}

article.built-for-mobile-feature:hover .built-for-mobile-notifications,
article.built-for-mobile-feature:focus-within .built-for-mobile-notifications {
  width: 14.5rem;
  opacity: 1;
  transform: translateX(-50%) translateY(-3.25rem) scale(1.02);
}

.built-for-mobile-notification {
  display: flex;
  gap: 0.4375rem;
  padding: 0.4375rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.625rem;
  background: rgba(72, 72, 74, 0.82);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(165%);
}

.built-for-mobile-notification--primary {
  position: relative;
  z-index: 20;
}

.built-for-mobile-notification--secondary {
  position: relative;
  z-index: 10;
  margin-top: -1.75rem;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: bottom center;
  transition:
    margin-top 0.45s cubic-bezier(0.22, 1.08, 0.42, 1),
    opacity 0.45s cubic-bezier(0.22, 1.08, 0.42, 1),
    transform 0.45s cubic-bezier(0.22, 1.08, 0.42, 1);
}

article.built-for-mobile-feature:hover .built-for-mobile-notification--secondary,
article.built-for-mobile-feature:focus-within .built-for-mobile-notification--secondary {
  margin-top: 0.375rem;
  opacity: 1;
  transform: scale(1);
}

.built-for-mobile-app-icon,
.built-for-mobile-app-icon-wrap {
  position: relative;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.built-for-mobile-app-icon {
  display: block;
  border-radius: 22%;
  object-fit: cover;
}

.built-for-mobile-app-icon-wrap .built-for-mobile-visa-badge {
  position: absolute;
  right: -0.125rem;
  bottom: -0.125rem;
  display: flex;
  width: 0.625rem;
  height: 0.625rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.built-for-mobile-app-icon-wrap .built-for-mobile-visa-badge svg {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
}

.built-for-mobile-notification-text {
  min-width: 0;
  flex: 1;
  align-self: center;
  text-align: left;
}

.built-for-mobile-notification-title {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.98);
}

.built-for-mobile-notification-body {
  margin: 0.1875rem 0 0;
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(235, 235, 245, 0.72);
}

.built-for-mobile-desc {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .built-for-mobile-visual {
    bottom: 4.5rem;
  }
}

@media (min-width: 640px) {

  .built-for-mobile-phone-wrap {
    width: min(18rem, 90%);
    transform: translateX(-50%) translateY(48%) scale(1.02);
  }
}

@media (min-width: 640px) {

  article.built-for-mobile-feature:hover .built-for-mobile-phone-wrap,
  article.built-for-mobile-feature:focus-within .built-for-mobile-phone-wrap {
    transform: translateX(-50%) translateY(48%) scale(1.03);
  }
}

article.enrollment-automation-feature {
  background-color: var(--feature-card-bg) !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

article.enrollment-automation-feature .enrollment-automation-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 0;
}

.enrollment-automation-visual {
  position: absolute;
  top: 0;
  right: -0.25rem;
  left: -0.25rem;
  bottom: 4.35rem;
  overflow: hidden;
  pointer-events: none;
}

.enrollment-automation-form-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(17.25rem, 88%);
  aspect-ratio: 670 / 948;
  transform: translateX(-50%) translateY(30%) scale(1.02);
  transform-origin: bottom center;
  transition: transform 0.4s ease-in-out;
}

article.enrollment-automation-feature:hover .enrollment-automation-form-wrap,
article.enrollment-automation-feature:focus-within .enrollment-automation-form-wrap {
  transform: translateX(-50%) translateY(30%) scale(1.03);
}

.enrollment-automation-form {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #fff;
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.enrollment-automation-form-hero {
  position: relative;
  height: 4.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.enrollment-automation-form-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.enrollment-automation-form-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
}

.enrollment-automation-form-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  text-align: center;
  color: #fff;
}

.enrollment-automation-form-hero-copy p {
  margin: 0;
  font-size: 0.4375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.enrollment-automation-form-hero-copy h4,
.enrollment-automation-form-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.enrollment-automation-form-hero-copy span {
  margin-top: 0.25rem;
  font-size: 0.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.enrollment-automation-form-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem 0.6875rem 0.625rem;
}

.enrollment-automation-field + .enrollment-automation-field {
  margin-top: 0.4375rem;
}

.enrollment-automation-label {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #171717;
}

.enrollment-automation-help {
  margin: 0.125rem 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.4375rem;
  line-height: 1.25;
  color: #737373;
}

.enrollment-automation-card-row {
  display: flex;
  align-items: flex-end;
  gap: 0.3125rem;
  margin-top: 0.1875rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: rgba(250, 250, 250, 0.95);
  padding: 0.3125rem 0.375rem;
}

.enrollment-automation-card-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.3125rem;
}

.enrollment-automation-card-row img {
  width: 1rem;
  height: auto;
  flex-shrink: 0;
}

.enrollment-automation-card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.4375rem;
  color: #404040;
}

.enrollment-automation-card-meta {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 0.375rem;
  padding-left: 0.25rem;
  border-left: 1px solid #e5e5e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.4375rem;
  color: #404040;
}

.enrollment-automation-upload {
  display: flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.1875rem;
  border: 1px dashed #d4d4d4;
  border-radius: 0.375rem;
  background: rgba(250, 250, 250, 0.65);
  color: #a3a3a3;
}

.enrollment-automation-upload--faded {
  opacity: 0.42;
  background: rgba(250, 250, 250, 0.35);
  border-color: #e8e8e8;
  color: #d4d4d4;
}

.enrollment-automation-upload-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.enrollment-automation-desc {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .enrollment-automation-visual {
    bottom: 4.5rem;
  }
}

@media (min-width: 640px) {

  .enrollment-automation-form-wrap {
    width: min(18rem, 90%);
    transform: translateX(-50%) translateY(30%) scale(1.02);
  }
}

@media (min-width: 640px) {

  article.enrollment-automation-feature:hover .enrollment-automation-form-wrap,
  article.enrollment-automation-feature:focus-within .enrollment-automation-form-wrap {
    transform: translateX(-50%) translateY(30%) scale(1.03);
  }
}

article.compliance-automation-feature {
  background-color: var(--feature-card-bg) !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

article.compliance-automation-feature .compliance-automation-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 0;
}

.compliance-automation-desc {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.compliance-scanner-stage {
  position: absolute;
  top: 0;
  right: -0.25rem;
  left: -0.25rem;
  bottom: 4.35rem;
  overflow: visible;
}

.compliance-scanner-feed {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  height: 42%;
  align-items: stretch;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 0.125rem;
  pointer-events: none;
}

.compliance-scanner-feed-line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
}

.compliance-scanner-feed-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px dashed rgba(24, 129, 250, 0.28);
}

.compliance-scanner-feed-line::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 3px;
  height: 2.75rem;
  background: linear-gradient(to bottom, transparent, #1881fa, transparent);
  box-shadow: 0 0 10px rgba(24, 129, 250, 0.5);
  animation: compliance-feed-pulse 1.5s linear infinite;
}

.compliance-scanner-feed-line:nth-child(2)::after {
  animation-delay: 0.25s;
}

.compliance-scanner-feed-line:nth-child(3)::after {
  animation-delay: 0.5s;
}

.compliance-scanner-scene {
  position: absolute;
  left: 50%;
  top: 16%;
  z-index: 2;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
}

@media (min-width: 640px) {
  .compliance-scanner-scene {
    top: 18%;
  }
}

.compliance-scanner-card {
  position: relative;
  z-index: 2;
  width: 9.25rem;
  height: 10.75rem;
  padding: 0.75rem;
  border-radius: 0.625rem;
  background: #eceff3;
  box-shadow: inset 0 0 0 1px rgba(24, 129, 250, 0.08);
}

.compliance-scanner-image-wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow:
    0 10px 22px -14px rgba(24, 129, 250, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.compliance-scanner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.compliance-scanner-image--base {
  filter: grayscale(1);
}

.compliance-scanner-image--contain {
  object-fit: contain;
  padding: 1rem;
}

.compliance-scanner-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.compliance-scanner-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.25rem 0.5rem;
  font-size: 0.5625rem;
  font-weight: 500;
  color: #171717;
  white-space: nowrap;
  transition: opacity 0.25s ease;
  box-shadow:
    0 1px 6px rgba(24, 129, 250, 0.12),
    inset 0 0 0 1px rgba(24, 129, 250, 0.16);
}

.compliance-scanner-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 2px;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, #1881fa, #6366f1, transparent);
  box-shadow:
    0 0 16px rgba(24, 129, 250, 0.85),
    0 0 32px rgba(99, 102, 241, 0.45);
  transition: opacity 0.2s ease;
}

.compliance-scanner-card.is-scanning .compliance-scanner-bar {
  opacity: 1;
}

.compliance-scanner-card.is-flipping .compliance-scanner-image-wrap {
  filter: blur(6px);
  opacity: 0;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.compliance-scanner-card.is-flipping .compliance-scanner-badge {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (min-width: 640px) {
  .compliance-scanner-card {
    width: 10.5rem;
    height: 11.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compliance-scanner-feed-line::after,
  .compliance-scanner-bar {
    animation: none !important;
  }
}

@media (max-width: 991px) {

  article.flight-scheduling-feature,
  article.billing-payments-feature,
  article.compliance-automation-feature,
  article.enrollment-automation-feature,
  article.built-for-mobile-feature {
    min-height: 100%;
  }
}

@media (max-width: 991px) {

  .compliance-scanner-scene {
    top: 21%;
  }
}

@media (max-width: 991px) {

  .compliance-scanner-card {
    width: 10.75rem;
    height: 12.5rem;
  }
}

@media (max-width: 991px) {

  .enrollment-automation-form-wrap {
    width: min(19rem, 92%);
    transform: translateX(-50%) translateY(24%) scale(1.06);
  }
}

@media (max-width: 991px) {

  article.enrollment-automation-feature:hover .enrollment-automation-form-wrap,
  article.enrollment-automation-feature:focus-within .enrollment-automation-form-wrap {
    transform: translateX(-50%) translateY(24%) scale(1.07);
  }
}

@media (max-width: 991px) {

  .built-for-mobile-phone-wrap {
    width: min(16.5rem, 84%);
    transform: translateX(-50%) translateY(38%) scale(0.96);
  }
}

@media (max-width: 991px) {

  article.built-for-mobile-feature:hover .built-for-mobile-phone-wrap,
  article.built-for-mobile-feature:focus-within .built-for-mobile-phone-wrap {
    transform: translateX(-50%) translateY(38%) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .built-for-mobile-phone-wrap,
  .built-for-mobile-notifications,
  .built-for-mobile-notification--secondary {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  article.built-for-mobile-feature:hover .built-for-mobile-notifications,
  article.built-for-mobile-feature:focus-within .built-for-mobile-notifications {
    opacity: 1;
    transform: translateX(-50%) translateY(-3.25rem) scale(1);
  }
}

@keyframes compliance-feed-pulse {
  0% {
    top: -30%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    top: 110%;
    opacity: 0;
  }
}
