/* ==========================================================================
   Cenematic home-c — "Check Out Samples" section.

   Bold white cards (ClipBee-style): each card holds a bold title, a colored
   pill, a one-line description, then the demo video. Media height is fixed
   per card with an aspect-ratio per orientation, so vertical clips render
   narrow and horizontal clips wide while staying height-controlled. Real
   adilo thumbnails; clicking lazy-loads the adilo player (facade).
   ========================================================================== */

/* Section shell ----------------------------------------------------------- */
.samples {
  position: relative;
  overflow: hidden;
  padding: 46px 40px 88px;
  background: #f4f5fa;
  color: var(--ink);
}
.samples::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 50% at 12% 35%, rgba(255, 193, 7, 0.07), transparent 70%),
    radial-gradient(45% 50% at 88% 75%, rgba(255, 61, 0, 0.05), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.samples__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

/* Header ------------------------------------------------------------------ */
.samples__title {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.samples__title-accent {
  background: linear-gradient(105deg, #d97706, #ea580c, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.samples__chips {
  max-width: 880px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.samples__chip { color: var(--ink); font-weight: 600; }
.samples__chip::after { content: ", "; color: var(--muted); font-weight: 400; }
.samples__chips::after { content: "and more, all inside ONE tool"; }

.samples__cta-heading {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(40px, 7.5vw, 100px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(105deg, #ffc107, #ff8a00, #ff3d00, #ffc107);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 14s linear infinite;
}

/* Rows -------------------------------------------------------------------- */
.samples__rows {
  column-width: 300px;
  column-gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(36px, 5vw, 60px);
}

/* Bold white card (masonry item) ------------------------------------------ */
.samples__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: clamp(16px, 1.5vw, 22px) clamp(14px, 1.3vw, 18px) clamp(16px, 1.5vw, 20px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 26px -20px rgba(13, 15, 28, 0.22);
  text-align: center;
}

.samples__name {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.samples__pill {
  display: inline-block;
  margin: 10px 0 0;
  padding: 5px 14px 6px;
  border-radius: 8px;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  color: #1a1a1a;
  background: #dcf5d3;
}
/* cycle pill tints down the grid */
.samples__item:nth-child(5n+1) .samples__pill { background: #dcf5d3; }
.samples__item:nth-child(5n+2) .samples__pill { background: #fbeeb8; }
.samples__item:nth-child(5n+3) .samples__pill { background: #d6e6ff; }
.samples__item:nth-child(5n+4) .samples__pill { background: #fbd9ec; }
.samples__item:nth-child(5n+5) .samples__pill { background: #e6dcff; }

.samples__desc {
  margin: 10px 0 16px;
  max-width: 30ch;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.45;
  color: var(--muted);
}

/* Media window ------------------------------------------------------------ */
.samples__screen {
  position: relative;
  width: 100%;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: #e9e9f2;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.samples__item--v .samples__screen { aspect-ratio: 9 / 16; }
.samples__item--p .samples__screen { aspect-ratio: 3 / 4; }
.samples__item--h .samples__screen { aspect-ratio: 16 / 9; }
.samples__screen:hover { box-shadow: 0 18px 40px -20px rgba(194, 65, 12, 0.5); }

.samples__screen img,
.samples__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.samples__poster { z-index: 1; transition: opacity 0.2s ease; }
.samples__screen.is-playing .samples__poster,
.samples__screen.is-playing .samples__play { opacity: 0; pointer-events: none; }

.samples__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 50px;
  height: 50px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(13, 15, 28, 0.3);
  transition: transform 0.25s ease;
}
.samples__screen:hover .samples__play { transform: scale(1.08); }
.samples__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #1a1a1a;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 880px) {
  .samples { padding: 36px 18px 64px; }
  .samples__rows { column-width: 220px; }
  .samples__play { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .samples__rows { column-width: 160px; column-gap: 14px; }
}

/* Mobile: sample plays in a fullscreen modal (more room than inline) */
.samples__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
}

.samples__modal-inner {
  position: relative;
  max-width: 100%;
}

.samples__modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.samples__modal-video {
  position: relative;
  height: min(80vh, 760px);
  aspect-ratio: 9 / 16;
  max-width: 92vw;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.samples__modal-video--p { aspect-ratio: 3 / 4; }

.samples__modal-video--h {
  height: auto;
  width: 92vw;
  aspect-ratio: 16 / 9;
}

.samples__modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
