/* ============================================================
   PutOn — Feature Carousel (2026-08-27 redesign)
   Center-stage carousel: every app function as a live video
   slide (real demo clips from the app bundle). Active slide is
   full size and plays; neighbors peek in, scaled + dimmed.
   Styling rides the design tokens from style.css.
   ============================================================ */

.fcar {
  position: relative;
  width: 100%;
  max-width: 1280px;
  /* The parent section is a flex column; without min-width:0 the track's
     content width (8 slides) sets this item's min-content size and the
     whole carousel overflows the phone viewport. */
  min-width: 0;
  box-sizing: border-box;
  margin: 3.5rem auto 0;
  padding: 0 8px;
}
.fcar-viewport { min-width: 0; }

/* ── Viewport / track ─────────────────────────────────────── */
.fcar-viewport {
  overflow: hidden;
  /* soft fade at the stage edges */
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  padding: 18px 0 6px;
  cursor: grab;
}
.fcar-viewport.is-dragging { cursor: grabbing; }

.fcar-track {
  display: flex;
  gap: 28px;
  will-change: transform;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}
.fcar-track.no-anim { transition: none; }

/* ── Slide ────────────────────────────────────────────────── */
.fcar-slide {
  flex: 0 0 auto;
  width: min(430px, 76vw);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, filter .5s ease;
  transform: scale(.86);
  opacity: .38;
  filter: saturate(.7);
}
.fcar-slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

/* Media card — glossy rounded stage */
.fcar-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.fcar-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--gloss), transparent 16%);
  opacity: .45;
  mix-blend-mode: soft-light;
}
.fcar-media video,
.fcar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chip (feature name) floating on the media */
.fcar-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.fcar-chip i { color: var(--accent-strong); font-size: .95rem; }

/* Caption below the media */
.fcar-caption {
  text-align: center;
  padding: 20px 10px 0;
  min-height: 128px;
}
.fcar-title {
  font-family: var(--body-font);
    font-weight: 600;
    letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 .55rem;
  line-height: 1.2;
}
.fcar-desc {
  font-size: .95rem;
  color: var(--text-color-light);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 420px;
}
/* Hide neighbor captions so only the active slide "speaks" */
.fcar-slide .fcar-caption { opacity: 0; transform: translateY(8px); transition: opacity .45s ease .1s, transform .45s ease .1s; }
.fcar-slide.is-active .fcar-caption { opacity: 1; transform: none; }

/* ── Compare slide (before/after) ─────────────────────────── */
.fcar-compare { position: relative; width: 100%; height: 100%; }
.fcar-compare img { width: 100%; height: 100%; object-fit: cover; }
.fcar-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.85) 18%, rgba(255,255,255,.85) 82%, transparent);
  box-shadow: 0 0 18px rgba(255,255,255,.5);
  animation: fcarWipe 5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes fcarWipe {
  0%   { left: 30%; }
  100% { left: 70%; }
}

/* ── Arrows ───────────────────────────────────────────────── */
.fcar-arrow {
  position: absolute;
  top: calc(min(430px, 76vw) / 2 + 18px);
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--title-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s, border-color .25s;
  box-shadow: var(--shadow);
}
.fcar-arrow:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  transform: translateY(-50%) scale(1.07);
}
.fcar-arrow--prev { left: 14px; }
.fcar-arrow--next { right: 14px; }

/* ── Footer: dots + CTA ───────────────────────────────────── */
.fcar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 1.6rem;
}
.fcar-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}
.fcar-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(var(--ink-rgb), .22);
  cursor: pointer;
  transition: width .35s cubic-bezier(.22,1,.36,1), background .3s;
}
.fcar-dot.is-active {
  width: 30px;
  background: var(--accent);
}
.fcar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .14);
  border: 1px solid rgba(var(--accent-rgb), .4);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background .25s, color .25s, transform .2s;
}
.fcar-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .fcar-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  /* bigger touch targets */
  .fcar-dot { width: 10px; height: 10px; }
  .fcar-dot.is-active { width: 34px; }
  .fcar-dots { gap: 12px; }
  .fcar-arrow--prev { left: 6px; }
  .fcar-arrow--next { right: 6px; }
  .fcar-track { gap: 16px; }
  .fcar-caption { min-height: 150px; }
}
