.alta-fc {
  --alta-fc-accent: #7c6cf0;

  position: relative;
  width: 100%;
  padding: 80px 24px;
  color: #fff;
  font-family: Satoshi, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.alta-fc *,
.alta-fc *::before,
.alta-fc *::after {
  box-sizing: border-box;
}

.alta-fc__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.alta-fc__title {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.1;
  color: #fff;
}

/* ---------------- Desktop grid (5 columns) ---------------- */

.alta-fc__grid--desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  row-gap: 28px;
  column-gap: 16px;
  align-items: start;
}

/* The first 15 cells (3 rows × 5 cols) make up the header band (image / name / cta) */
.alta-fc__column-group {
  display: contents;
}

.alta-fc__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.alta-fc__cell--image {
  min-height: 140px;
  justify-content: flex-end;
}

/* Fixed box for every product image. Whatever aspect ratio the source has,
   the image is centered inside this box via object-fit: contain. This
   guarantees uniform layout slots even when source images differ
   (e.g. AP6-PRO-OUTDOOR has extra cable below, AP6W is rectangular). */
.alta-fc__product-image {
  display: block;
  width: 90px;
  height: 120px;
  object-fit: contain;
  object-position: center bottom;
}

.alta-fc__product-image--placeholder {
  width: 80px;
  height: 140px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.alta-fc__product-name {
  margin: 0;
  font-family: "Eurostile", "Bank Gothic", Satoshi, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

/* All product-name logos render at exactly this height. Width is allowed
   to overflow its column if the natural logo (e.g. AP6-PRO-OUTDOOR) is
   wider than 1/5 of the grid — using max-width would force shrinking,
   which would also reduce the height and break visual consistency. */
.alta-fc__cell--name {
  overflow: visible;
}
.alta-fc__name-image {
  display: block;
  height: 22px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
}

.alta-fc__learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--alta-fc-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.alta-fc__learn-more:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.alta-fc__cell--feature {
  padding: 6px 4px;
}

.alta-fc__primary {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
}

.alta-fc__secondary {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.alta-fc__dash {
  font-size: 24px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  padding: 8px 0;
}

/* ---------------- Mobile (2-column compare) ---------------- */

.alta-fc__mobile {
  display: none;
  position: relative;
}

.alta-fc__grid--mobile {
  display: none;
}

@media (max-width: 768px) {
  .alta-fc {
    padding: 56px 16px;
  }
  .alta-fc__title {
    margin-bottom: 32px;
  }
  /* Hide the 5-col desktop grid */
  .alta-fc__grid--desktop {
    display: none;
  }
  /* Show the 2-col mobile grid */
  .alta-fc__mobile {
    display: block;
  }
  .alta-fc__grid--mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    row-gap: 28px;
    column-gap: 24px;
    align-items: start;
  }
  .alta-fc__product-name {
    font-size: 24px;
  }
  .alta-fc__cell--image {
    min-height: 130px;
  }
  .alta-fc__product-image {
    width: 80px;
    height: 110px;
  }
  .alta-fc__name-image {
    height: 22px;
  }
  .alta-fc__learn-more {
    padding: 10px 22px;
    font-size: 13px;
  }
  .alta-fc__primary {
    font-size: 18px;
  }
  .alta-fc__secondary {
    font-size: 12px;
  }

  /* Nav arrows positioned to vertically-center on the first row of the
     mobile grid (the product image row). The image row is the first thing
     in `.alta-fc__mobile`, so `top: <half of image cell min-height>` lines up. */
  .alta-fc__nav {
    position: absolute;
    top: 65px; /* = half of .alta-fc__cell--image min-height (130px) on mobile */
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 5;
  }
  .alta-fc__nav:hover {
    background: rgba(255, 255, 255, 0.16);
  }
  .alta-fc__nav:active {
    transform: translateY(-50%) scale(0.95);
  }
  /* Prev sits at the LEFT edge of the AP6-PRO column (just past the column
     gap), in the empty space to the left of that image. Reads clearly as
     "navigate the right-hand product". */
  .alta-fc__nav--prev {
    left: calc(50% + 30px);
  }
  /* Next sits at the far right edge, flanking the RIGHT side of AP6-PRO. */
  .alta-fc__nav--next {
    right: -4px;
  }
}

