/* Customers page: logo wall, scale stats, video testimonials, story grid */

/* ───── Hero + logo wall ───── */
.customers-hero { padding-bottom: 96px; }
.customers-hero::before { top: 300px; }
.logo-wall {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
}
.logo-more .logo-wall { margin-top: 12px; }
.logo-tile {
  position: relative; height: 112px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-a), var(--card-b));
  display: grid; place-items: center; padding: 16px;
  transition: border-color .3s var(--ease);
}
.logo-tile img { width: auto; height: auto; max-width: 78%; max-height: 46px; opacity: .85; transition: opacity .3s, transform .3s var(--ease); }
.logo-tile p {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px;
  font-size: 12.5px; line-height: 1.45; color: var(--fg-2); text-align: center;
  background: color-mix(in srgb, var(--bg) 94%, transparent); opacity: 0; transition: opacity .3s var(--ease);
}
.logo-tile:hover { border-color: rgba(19,233,137,.35); }
.logo-tile:hover p { opacity: 1; }

/* expandable lists (logos, stories) */
.more-list { margin-top: 0; }
.more-list > summary { list-style: none; cursor: pointer; display: flex; width: max-content; margin: 40px auto 0; height: 44px; padding: 0 22px; font-size: 14.5px; }
.more-list > summary::-webkit-details-marker { display: none; }
.more-list[open] > summary { order: 2; }
.more-list .when-open, .more-list[open] .when-closed { display: none; }
.more-list[open] .when-open { display: inline; }
.more-list[open] { display: flex; flex-direction: column; }

/* ───── Scale stats ───── */
.cx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.cx-stats div { padding-left: 24px; border-left: 1px solid rgba(19,233,137,.4); }
.cx-stats b { display: block; font-size: clamp(36px, 4vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--accent); }
.cx-stats span { display: block; margin-top: 10px; font-size: 15px; color: var(--fg-2); }

/* ───── Video testimonials ───── */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.voice { display: flex; flex-direction: column; padding: 20px 20px 32px; margin: 0; }
.voice:hover { transform: none; }
.voice-video { border-radius: 12px; aspect-ratio: 16 / 9; }
.voice-video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.voice-logo { display: block; width: auto; height: var(--h, 32px); margin: calc(64px - var(--h, 32px)) 12px 0; align-self: flex-start; opacity: .9; }
.voice blockquote { margin: 18px 12px 0; font-size: 19px; line-height: 1.5; letter-spacing: -0.015em; font-weight: 500; flex: 1; }
.voice figcaption { margin: 22px 12px 0; font-size: 14.5px; color: var(--fg-2); }
.voice figcaption b { display: block; color: var(--fg); font-weight: 500; }

/* ───── Story grid ───── */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-more .stories { margin-top: 20px; }
.story { display: flex; flex-direction: column; padding: 14px 14px 26px; }
.story-thumb { display: block; aspect-ratio: 1200 / 628; border-radius: 12px; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); }
.story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* light-grey logo thumbnails flipped to the dark theme */
.story-thumb.is-light img { filter: var(--flip, invert(1) hue-rotate(180deg) brightness(1.15)); }
.story-meta { margin: 22px 10px 0; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.story h3 { flex: 1; margin: 10px 10px 0; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; }
.story .link { margin: 20px 10px 0; font-size: 14.5px; }

/* ───── Final CTA ───── */
.eyebrow-ai { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-ai img { width: 16px; height: 15px; }
.cx-facts b { font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .customers-hero { padding-bottom: 72px; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
  .logo-more .logo-wall { margin-top: 8px; }
  .logo-tile { height: 76px; padding: 10px; border-radius: 10px; }
  .logo-tile img { max-width: 88%; max-height: 32px; }
  .logo-tile p { display: none; }
  .cx-stats { gap: 28px 20px; }
  .cx-stats div { padding-left: 16px; }
  .cx-stats span { font-size: 14px; }
  .voice { padding: 14px 14px 26px; }
  .voice blockquote { font-size: 17px; }
  .voice-logo { height: calc(var(--h, 32px) * .85); margin-top: calc(56px - var(--h, 32px) * .85); }
  .stories { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .story-more .stories { margin-top: 12px; }
  .story { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 12px 16px 16px 12px; }
  .story-thumb { grid-row: 1 / 4; align-self: start; border-radius: 8px; }
  .story-meta { margin: 2px 0 0; font-size: 10.5px; }
  .story h3 { margin: 6px 0 0; font-size: 15.5px; line-height: 1.35; }
  .story .link { margin: 10px 0 0; font-size: 13.5px; }
}
@media (hover: none) {
  .logo-tile p { display: none; }
}

/* light skin: the grey logos wash out on white and the one white logo (365Scores) inverts to solid black, so every tile shows the same grey silhouette */
:root[data-theme="light"] .logo-tile img { filter: brightness(0); opacity: .5; }
:root[data-theme="light"] .logo-tile:hover img { opacity: .75; }

/* ───── New customer story: Mews ─────
   The feature coralogix.com opened its customers page with: the story's headline and two actions
   beside the customer film (the shared .film player from pages.css, Wistia loaded on play). The
   poster carries its own lower-third (Terry Brown, Mews), so the frame skips the darkening and the
   play button sits in the corner, solid green, as it did. */
.cx-story { padding: 80px 0; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cx-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: center; }
.cx-story-tag { display: inline-block; margin: 0 0 24px; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 4px;
  background: rgba(19, 233, 137, .08); color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.cx-story h2 { max-width: 32rem; margin: 0 0 32px; font-size: clamp(28px, 1rem + 1.6vw, 36px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 560; }
.cx-story-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cx-story-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 8px;
  font: 500 16px/1 inherit; cursor: pointer; white-space: nowrap; transition: box-shadow .25s, background .25s, border-color .25s; }
.cx-story-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-story-btn--primary { border: 0; background: #13E989; color: #1E1F20; }
.cx-story-btn--primary:hover { box-shadow: 0 2px 17px 0 rgba(68, 225, 129, .8); }
.cx-story-btn--ghost { border: 1px solid var(--line-2); background: rgb(var(--ink) / .03); color: var(--fg); }
.cx-story-btn--ghost:hover { background: rgb(var(--ink) / .08); border-color: rgb(var(--ink) / .3); }
.cx-story-film .film-frame { border-radius: 12px; }
.cx-story-film .film-frame::after { display: none; }
.cx-story-film .film-play { left: auto; top: auto; right: 24px; bottom: 24px; translate: none; width: 66px; height: 66px;
  background: #13E989; backdrop-filter: none; box-shadow: 0 2px 17px 0 rgba(68, 225, 129, .35); }
.cx-story-film .film-play svg { width: 26px; height: 26px; margin-left: 4px; fill: #1E1F20; }
@media (hover: hover) { .cx-story-film .film-frame:hover .film-play { background: #5DF3B7; box-shadow: 0 2px 22px 0 rgba(68, 225, 129, .7); } }
.cx-story-film.is-on .film-player { border-radius: 12px; overflow: hidden; }
@media (max-width: 960px) {
  .cx-story { padding: 64px 0; }
  .cx-story-grid { grid-template-columns: minmax(0, 1fr); }
  .cx-story-film { order: -1; }
}
@media (max-width: 560px) {
  .cx-story { padding: 48px 0; }
  .cx-story-actions { flex-direction: column; align-items: stretch; }
  .cx-story-btn { justify-content: center; }
  .cx-story-film .film-play { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .cx-story-film .film-play svg { width: 20px; height: 20px; }
}

/* ───── November 2026: back to the coralogix.com layout ─────
   Terry first (the story leads the page, no band around it), the logo tiles moving in three rows,
   the scale stats gone, and the customer voices four across. */
.cx-story { background: none; border: 0; padding: clamp(56px, 7vw, 96px) 0 0; }
.cx-story + .customers-hero { padding-top: clamp(72px, 8vw, 112px); }

.logo-marquee { margin-top: 72px; display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* full width of the window, not the container, as the old rows ran edge to edge */
.customers-hero .logo-marquee { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.logo-row { display: flex; width: max-content; gap: 14px; animation: logo-slide 90s linear infinite; }
.logo-row:nth-child(2) { animation-duration: 110s; animation-direction: reverse; }
.logo-row:nth-child(3) { animation-duration: 100s; }
.logo-marquee:hover .logo-row, .logo-marquee:focus-within .logo-row { animation-play-state: paused; }
.logo-track { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex: none; }
.logo-track .logo-tile { width: 220px; flex: none; }
@keyframes logo-slide { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .customers-hero .logo-marquee { margin-left: 0; margin-right: 0; }
  .logo-row { animation: none; width: auto; }
  .logo-copy { display: none; }
  .logo-track { flex-wrap: wrap; justify-content: center; }
  .logo-track .logo-tile { width: calc((100% - 5 * 14px) / 6); min-width: 140px; }
}
@media (max-width: 560px) {
  .logo-marquee { margin-top: 48px; gap: 10px; }
  .logo-row, .logo-track { gap: 10px; }
  .logo-track .logo-tile { width: 168px; height: 96px; }
  @keyframes logo-slide { to { transform: translateX(calc(-50% - 5px)); } }
}

.voices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.voice { padding: 12px 12px 22px; }
.voice-video { border-radius: 10px; }
.voice-logo { height: calc(var(--h, 32px) * .7); margin: calc(44px - var(--h, 32px) * .7) 8px 0; }
.voice blockquote { margin: 14px 8px 0; font-size: 15px; line-height: 1.5; }
.voice figcaption { margin: 16px 8px 0; font-size: 13px; }
@media (max-width: 1120px) { .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 560px) { .voices { grid-template-columns: minmax(0, 1fr); } }
