/* ==========================================================================
   Cenematic home-c — "See Cénematic Incredible Features" section

   Full-width checkerboard of feature cards (ClipBee-style): a 2-column grid of
   large rounded cards alternating yellow / black, media facing the outer edge
   of each column. Cards render from capabilities.js. The media image is a
   placeholder — swap for the real per-feature media.
   ========================================================================== */

.caps {
  position: relative;
  overflow: hidden;
  padding: 36px 0 0;
  background: #fff;
  color: var(--ink);
}

.caps__heading {
  position: relative;
  z-index: 2;
  margin-bottom: 52px;
  padding: 0 40px;
  text-align: center;
  font-size: clamp(34px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* Full-width 2-up grid */
.caps__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.caps__card {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 56%);
  gap: 32px;
  align-items: stretch;
  padding: 40px 48px;
  border-radius: 34px;
}
/* checkerboard: yellow / black / black / yellow ... */
.caps__card:nth-child(4n+1),
.caps__card:nth-child(4n+4) { background: #f5d340; color: #141414; }
.caps__card:nth-child(4n+2),
.caps__card:nth-child(4n+3) { background: #141414; color: #fff; }
/* media faces the outer edge of each column; flip the column ratio so text
   keeps the wide share whichever side the media sits on */
.caps__card:nth-child(odd) { grid-template-columns: minmax(340px, 56%) 1fr; }
.caps__card:nth-child(odd) .caps__media { order: -1; } /* left column: media left */
.caps__card:nth-child(even) .caps__media { order: 1; }  /* right column: media right */
/* square the outer corners so each column hugs the page edge */
.caps__card:nth-child(odd) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.caps__card:nth-child(even) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.caps__text { align-self: center; }
/* text hugs the inner edge: left column aligns right, right column aligns left */
.caps__card:nth-child(odd) .caps__text { text-align: right; }
.caps__card:nth-child(even) .caps__text { text-align: left; }
.caps__title {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
}
.caps__text p { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: inherit; opacity: 0.9; }
.caps__text p + p { margin-top: 12px; }

.caps__media { margin: 0; display: flex; align-items: center; }
.caps__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Supporting features — light band, open colorful grid (no cards) ----- */
.caps__more {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin-top: -300px;
  padding: 380px 0 88px;
  background: #fff;
}
.caps__more::before { display: none; }
/* faint multicolor aurora wash so images have something warm to pop against */
.caps__more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 60% at 10% 18%, rgba(20, 184, 166, 0.10), transparent 60%),
    radial-gradient(38% 60% at 90% 18%, rgba(255, 138, 0, 0.10), transparent 60%),
    radial-gradient(50% 65% at 50% 112%, rgba(245, 158, 11, 0.08), transparent 60%);
  mask-image: linear-gradient(180deg, transparent 0, #000 400px);
  pointer-events: none;
}

.caps__more-title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 40px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.caps__more-accent {
  background: linear-gradient(105deg, #ffc107, #ff8a00, #ff3d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caps__sub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.caps__sub { text-align: center; }
.caps__sub-media {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.caps__sub-media .caps__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 12px;
}
/* colored glow pooled under each media, cycling for vibrancy */
.caps__sub-media::before {
  content: "";
  position: absolute;
  inset: 14% 8% -12%;
  z-index: 0;
  border-radius: 18px;
  background: var(--glow, #ff8a00);
  filter: blur(30px);
  opacity: 0.4;
}
.caps__sub:nth-child(6n+1) { --glow: #14b8a6; }
.caps__sub:nth-child(6n+2) { --glow: #0ea5e9; }
.caps__sub:nth-child(6n+3) { --glow: #ef4444; }
.caps__sub:nth-child(6n+4) { --glow: #ea580c; }
.caps__sub:nth-child(6n+5) { --glow: #22c55e; }
.caps__sub:nth-child(6n+6) { --glow: #f59e0b; }
.caps__sub-title { margin-bottom: 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.caps__sub-body { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 920px) {
  .caps { padding: 56px 0 0; }
  .caps__heading { padding: 0 20px; }
  .caps__grid { grid-template-columns: 1fr; }
  .caps__more { margin-top: -190px; padding: 280px 0 64px; }
  .caps__more::before { height: 340px; }
  .caps__more::after { mask-image: linear-gradient(180deg, transparent 0, #000 280px); }
  .caps__sub-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; padding: 0 20px; }
  .caps__card,
  .caps__card:nth-child(odd) { grid-template-columns: 1fr; padding: 28px; gap: 22px; }
  .caps__card:nth-child(odd) .caps__media,
  .caps__card:nth-child(even) .caps__media { order: -1; }
  .caps__card:nth-child(odd) .caps__text,
  .caps__card:nth-child(even) .caps__text { text-align: center; }
  .caps__media { justify-content: center; }
  .caps__img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
  .caps__card:nth-child(odd),
  .caps__card:nth-child(even) { border-radius: 0; }
}

@media (max-width: 560px) {
  .caps__more { margin-top: -150px; padding-top: 250px; }
  .caps__more::before { height: 300px; }
  .caps__more::after { mask-image: linear-gradient(180deg, transparent 0, #000 250px); }
  .caps__sub-grid { grid-template-columns: 1fr; }
  .caps__sub-media .caps__img { width: min(100%, 360px); }
}
