/* aviate skin, part a: page-specific rules
   ================================================================
   Pages: index, kaui, subscription-billing,
   how-to-choose-a-billing-software-system, aviate/security.

   These five templates rebuild their hero (and, on the home page, the
   logo wall, the "Battle-tested" section and the testimonials) with the
   real /aviate markup (.avl-hero, .avl-marquee, .avl-stories,
   .avl-audience__card ...). Each template loads aviate-landing.css,
   which is scoped to .avl, and wraps the rebuilt blocks in
   <div class="avl ska">. This file only adds what /aviate does not
   have (hero stats, the logo-wall label, product visuals other than
   the catalog shot, figure captions) and keeps the .ska blocks clear
   of the legacy skin rules. Prefix: .ska (skin a).
   ================================================================ */

/* 1. Shared hero additions ---------------------------------------- */

/* A rebuilt hero sits directly under the fixed header, like /aviate */
.ska {
  isolation: auto;
}

/* Tag holding only a check mark (home badge) */
.ska .ska-hero__check {
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--space-3xs);
  font-size: var(--font-size-14);
  line-height: 1;
  font-weight: var(--font-weight-semibold);
}

/* Inline facts under the hero buttons (home stats, updated dates) */
.ska .ska-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3xs) var(--space-md);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-secondary);
}

.ska .ska-hero__stats li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
}

.ska .ska-hero__stats li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.ska .ska-hero__meta {
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  color: var(--color-on-surface-tertiary);
}

/* Two-paragraph subtitle */
.ska .ska-hero__lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  max-width: 900px;
}

/* Duration inside the window button ("2 min") */
.ska .ska-hero__cta-meta {
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  opacity: 0.7;
}

.ska .ska-hero__figure {
  position: relative;
}

/* Logo wall label + marquee (home) */
.ska .ska-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  width: 100%;
  margin-top: var(--space-xs);
}

.ska .ska-proof__label {
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-tertiary);
  text-align: center;
}

/* 18 logos instead of 7: same speed per logo as /aviate (5s) */
.ska .ska-marquee {
  --marquee-duration: 90s;
}

.ska .avl-marquee__item img {
  object-fit: contain;
}

/* Legacy logo files: same grey as the /aviate logo files (#475467) */
.ska .avl-marquee__item img.ska-marquee__legacy {
  padding: 6px 12px;
  filter: grayscale(1) brightness(0.55) contrast(1.4);
  opacity: 0.85;
}

/* Product window: shots other than the 1104x594 catalog capture are
   cropped to the same window proportion */
.ska .ska-hero__shot--crop {
  aspect-ratio: 1104 / 594;
  object-fit: cover;
  object-position: top left;
  background: var(--color-neutral-0);
}

/* Caption under the window */
.ska .ska-hero__caption {
  position: relative;
  margin-top: var(--space-xs);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  color: var(--color-neutral-600);
  text-align: center;
}

/* Bullet facts kept from the old two-column heroes: a centred row */
.ska .ska-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
  max-width: 964px;
  margin-top: var(--space-3xs);
  text-align: left;
}

.ska .ska-hero__points li {
  display: flex;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-outline-primary);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 70%);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  color: var(--color-on-surface-secondary);
}

/* 2. Blue arrow / check list (home product, subscription hero) ----- */
.ska .ska-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ska .ska-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--font-size-16);
  line-height: var(--line-height-22);
  color: var(--color-on-surface-secondary);
}

.ska :is(.ska-list__icon, .ska-hero__points li) .check-icon {
  flex: none;
  display: flex;
}

.ska :is(.ska-list__icon, .ska-hero__points li) .check-icon svg {
  width: 22px;
  height: 22px;
}

.ska :is(.ska-list__icon, .ska-hero__points li) .check-icon circle {
  fill: var(--color-primary-25);
}

.ska :is(.ska-list__icon, .ska-hero__points li) .check-icon path {
  fill: var(--color-primary);
}

/* 3. Home: "Battle-tested" ---------------------------------------- */
.ska-product {
  padding-block: var(--avl-section-y);
}

.ska .ska-product__intro {
  display: grid;
  grid-template-columns: minmax(0, 563fr) minmax(0, 661fr);
  align-items: center;
  gap: 56px;
}

.ska .ska-product__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ska .ska-product__lead {
  font-size: var(--font-size-16);
  line-height: var(--line-height-22);
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-primary);
}

.ska .ska-product__copy .ska-list {
  margin-top: calc(-1 * var(--space-xs));
}

.ska .ska-product__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.ska .ska-product__cards {
  margin-top: 56px;
}

.ska .ska-card {
  min-height: 0;
}

.ska .ska-card .avl-card-text {
  max-width: 360px;
}

.ska .ska-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-2xs);
  font-size: var(--font-size-16);
  line-height: var(--line-height-22);
  font-weight: var(--font-weight-medium);
}

/* 4. Home: testimonials (.avl-stories) ---------------------------- */
.ska .ska-story {
  cursor: default;
}

.ska .ska-story:hover {
  outline-color: var(--color-outline-primary);
  box-shadow: none;
  transform: none;
}

.ska .ska-story:hover .avl-story__quote-icon {
  color: var(--color-neutral-300);
}

.ska .avl-story--featured .avl-story__quote-icon {
  color: var(--color-primary);
}

/* 5. Responsive --------------------------------------------------- */
@media (max-width: 1024px) {
  .ska .ska-product__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .ska .ska-product__visual {
    max-width: 661px;
  }
}

@media (max-width: 768px) {
  .ska .ska-hero__points {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }

  .ska .ska-hero__stats {
    gap: var(--space-3xs) var(--space-sm);
  }

  .ska .ska-product__cards {
    margin-top: var(--space-xl);
  }
}
