/* ===========================================================================
   Harv — integraties.html. A selectable "rits" of integration chips on top,
   one story per integration below. Pairs with harv-boek.css (page shell),
   harv-blog.css (page title) + harv-sections.css (tokens, footer).
   =========================================================================== */

/* --- the chip rail ("rits") ------------------------------------------------ */
.int-chips {
  margin-top: clamp(22px, 3vw, 36px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  position: relative;
}
/* the green selection is ONE pill that glides from chip to chip */
.int-pill {
  position: absolute; background: #77fb38; border-radius: 100px; z-index: 0; opacity: 0;
  transition: left .45s cubic-bezier(.16, 1, .3, 1), top .45s cubic-bezier(.16, 1, .3, 1),
              width .45s cubic-bezier(.16, 1, .3, 1), height .45s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
@media (prefers-reduced-motion: reduce) { .int-pill { transition: opacity .2s; } }
.int-chips .chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 11px; border-radius: 100px;
  background: #fff; border: 1px solid rgba(16, 19, 20, .14);
  font-weight: 700; font-size: .92rem; color: #101314; text-decoration: none;
  transition: border-color .25s, background-color .25s, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.int-chips .chip img { width: 19px; height: 19px; object-fit: contain; }
.int-chips .chip:hover { border-color: rgba(119, 251, 56, .8); transform: translateY(-2px); }
.int-chips .chip { position: relative; z-index: 1; }
.int-chips .chip[aria-current="true"] { background: transparent; border-color: transparent; }
/* without JS there is no pill; keep the plain green state as fallback */
html:not(.int-js) .int-chips .chip[aria-current="true"] { background: #77fb38; border-color: #77fb38; }
.int-chips .chip:focus-visible { outline: 3px solid #101314; outline-offset: 2px; }
/* phone: the rail becomes a horizontally scrollable band of three rows
   (column-wrap flex keeps every chip at its natural width) */
@media (max-width: 680px) {
  .int-chips {
    display: flex; flex-flow: column wrap; align-content: flex-start; justify-content: flex-start;
    gap: 8px; height: 164px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 4px 24px 14px; margin-inline: -24px;
    scrollbar-width: none;
  }
  .int-chips::-webkit-scrollbar { display: none; }
  .int-chips .chip { white-space: nowrap; flex: 0 0 auto; }
}

/* --- the stories ------------------------------------------------------------
   Every story is real content in the HTML (visible without JS / in headless);
   only when JS is live (html.int-js) do we collapse to one story at a time. */
.int-stories { max-width: 880px; margin: clamp(28px, 4vw, 48px) auto 0; }
.int-story {
  background: #fff; border: 1px solid rgba(16, 19, 20, .12); border-radius: 24px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 30px 70px -52px rgba(16, 19, 20, .4);
  margin-bottom: 22px;
}
html.int-js .int-story { display: none; margin-bottom: 0; }
html.int-js .int-story.active { display: block; animation: int-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes int-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.int-js .int-story.active { animation: none; }
  .int-chips .chip, .int-chips .chip:hover { transform: none; }
}

.int-story header { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.int-story header img { width: 52px; height: 52px; object-fit: contain; }
.int-story header h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; margin: 0; color: #101314; }
.int-story header .int-what { display: block; font-size: .95rem; font-weight: 600; color: #5b6166; margin-top: 2px; }
.int-story p { color: #3a4043; font-size: 1.05rem; line-height: 1.65; margin: 0 0 16px; max-width: 70ch; }
.int-story p strong { color: #101314; }
.int-story .int-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(16, 19, 20, .1); }
.int-story .int-pair span { font-size: .85rem; font-weight: 600; color: #5b6166; margin-right: 4px; }
.int-story .int-pair a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: .85rem; font-weight: 700; color: #101314;
  background: #f4f4f3; border: 1px solid rgba(16, 19, 20, .12); border-radius: 100px; padding: 6px 13px 6px 9px;
  transition: border-color .25s;
}
.int-story .int-pair a img { width: 15px; height: 15px; object-fit: contain; }
.int-story .int-pair a:hover { border-color: rgba(119, 251, 56, .9); }

/* --- closing CTA strip ------------------------------------------------------ */
.int-missing { text-align: center; max-width: 620px; margin: clamp(36px, 5vw, 60px) auto 0; padding-bottom: clamp(56px, 8vw, 100px); }
.int-missing h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; color: #101314; }
.int-missing p { color: #5b6166; margin: 0 0 22px; }
.int-missing a.cta { display: inline-flex; align-items: center; gap: 10px; background: #77fb38; color: #101314; font-weight: 700; text-decoration: none; padding: 17px 28px; border-radius: 16px; transition: background-color .2s; }
.int-missing a.cta:hover { background: #d2ff72; }

/* mobiel: chips als volwaardige tik-doelen */
@media (pointer: coarse) {
  .int-chips .chip { padding: 13px 18px 13px 13px; font-size: .96rem; }
  .int-chips .chip img { width: 21px; height: 21px; }
}
