/* The Integrations page (/integrations/): the deck in the hero, the "Works with" row, the cards of the one-click
   integrations in three groups, the gallery's logo cloud, the recipes and the questions at the end.

   Vendor marks (assets/hubs/platform/logos/, credits.json there) sit on a white tile with clear space around them and
   are never shadowed, rotated or recolored. They are the app's one shared set (scripts/sync-vendor-logos.mjs). A tool
   with no mark we may use shows .is-plain: Slatebox's neutral initials tile, as in the app, and its name in text. */

/* ---- The hero: the deck plays on a dark screen (assets/home/present-autoplay.css does the player) ---- */
.ig-player .pp-main { border-color: #1d2650; box-shadow: 0 34px 70px -38px #070b2ae6, 0 0 0 6px #ffffff8c }
.ig-player .pp-main, .ig-player .pp-player, .ig-player img { background: #070b2a }
.ig-player .pp-style { top: .7rem; left: .7rem; background: #070b2ad9; color: #f4f6ff }
.ig-player figcaption { margin-top: .9rem; color: #33473b }
.ig-player figcaption b { color: var(--ink) }

/* ---- A vendor's mark ---- */
.ig-tile { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d8ddd2; border-radius: 11px; background: #fff }
.ig-logo { display: block; width: 24px; height: 24px }
/* A wordmark (Zoom, Box, Wix, Typeform: the full name, centred on Simple Icons' square) shows at its own width: the
   tile widens and the image keeps only the band the name sits in (object-fit crops the empty top and bottom, the mark
   itself is untouched). Zapier's mark is its name on an orange badge: shown larger, uncropped. */
.ig-tile:has(> .is-wordmark) { width: auto; min-width: 44px; padding: 0 7px }
.ig-logo.is-wordmark { width: 44px; height: 14px; object-fit: cover }
.ig-logo.is-wordmark[src$="/box.svg"] { height: 24px }
.ig-logo.is-wordmark[src$="/wix.svg"] { height: 18px }
.ig-logo.is-badge { width: 34px; height: 34px }
.ig-logo.is-plain { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #eef1ea; box-shadow: inset 0 0 0 1px #dfe3d6; color: #34433a; font: 700 12px/1 system-ui,sans-serif; letter-spacing: .02em }
/* An initials tile is the tile itself, not a tile inside a white tile. */
.ig-tile:has(> .is-plain) { border: 0; background: none }
.ig-tile > .ig-logo.is-plain { width: 100%; height: 100%; border-radius: 11px; font-size: 15px }
/* Pitch's off-white symbol is approved on its Majorelle; its tile is that color. */
.ig-tile:has(> img[src$="/pitch.svg"]) { border-color: #5318EB; background: #5318EB }
.ig-tiles { display: flex; gap: .4rem }
.ig-tiles .ig-tile { margin-bottom: .45rem }

/* ---- "Works with", under the hero's words ---- */
.ig-works { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line) }
.ig-works p { color: #506356; font: 600 .75rem/1.3 ui-monospace,Menlo,monospace; letter-spacing: .04em; text-transform: uppercase }
.ig-works ul { display: flex; flex-wrap: wrap; gap: .45rem .5rem; margin: .7rem 0 0; padding: 0; list-style: none }
.ig-works li { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem .22rem .25rem; border: 1px solid #d8ddd2; border-radius: 99px; background: #fffdf4; color: var(--ink); font-size: .84rem; font-weight: 600; white-space: nowrap }
.ig-works .ig-tile { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff }
.ig-works .ig-logo { width: 18px; height: 18px }
.ig-works .ig-tile:has(> .is-wordmark) { width: auto; padding: 0 8px; border-radius: 99px }
.ig-works .ig-logo.is-wordmark { width: 34px; height: 11px }
.ig-works .ig-logo.is-wordmark[src$="/box.svg"] { height: 19px }
.ig-works .ig-tile > .ig-logo.is-plain { width: 100%; height: 100%; border-radius: 50%; font-size: 12px }

/* ---- The one-click integrations, in three groups ---- */
.ig-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px,1.6vw,26px) }
.ig-group h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; color: var(--s-soft); font: 600 .8rem/1.3 ui-monospace,Menlo,monospace; letter-spacing: .04em; text-transform: uppercase }
.ig-group h3::after { content: ""; flex: 1; height: 1px; background: var(--s-line) }
.ig-cards { display: grid; gap: clamp(10px,1vw,14px); margin: 0; padding: 0; list-style: none }
.ig-cards li { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .75rem .9rem; padding: clamp(16px,1.5vw,20px); border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-card); transition: border-color .2s, box-shadow .2s, transform .2s }
.ig-cards li:hover { border-color: color-mix(in srgb, var(--hub-deep) 45%, var(--s-line)); box-shadow: 0 14px 30px -22px #21392f80; transform: translateY(-2px) }
/* The mark and the name share the first row, centred on each other; the words run the card's full width beneath. */
.ig-cards li > div { display: contents }
.ig-cards h4 { align-self: center; margin: 0; padding-right: 5.6rem; font-size: clamp(1.1rem,1.25vw,1.25rem); line-height: 1.2 }
.ig-cards p { grid-column: 1 / -1; margin: 0; color: var(--s-soft); font-size: .94rem; line-height: 1.5 }
.ig-badge { position: absolute; top: calc(clamp(16px,1.5vw,20px) + 11px); right: clamp(16px,1.5vw,20px); padding: .14rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--hub) 70%, #fff); color: var(--hub-deep); font: 600 .75rem/1.5 ui-monospace,Menlo,monospace; white-space: nowrap }

/* ---- The gallery's logo cloud ---- */
.ig-cloud { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,11.5rem),1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none }
.ig-cloud li { display: flex; align-items: center; gap: .65rem; min-height: 3.4rem; padding: .55rem .85rem; border: 1px solid color-mix(in srgb, var(--hub-deep) 22%, #fff); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem }
.ig-cloud li.ig-cloud-more { justify-content: center; border-style: dashed; background: transparent; color: var(--s-soft); font-weight: 500 }
.ig-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 1.4rem }
.ig-more > span { color: var(--s-soft); font-size: .92rem }
.ig-compliance-more { margin-top: 1.4rem; max-width: 72ch; color: var(--s-soft) }

/* ---- Recipes ---- */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,17rem),1fr)); gap: clamp(12px,1.2vw,18px); list-style: none; margin: 0; padding: 0 }
.ig-grid li { display: flex; flex-direction: column; gap: .45rem; padding: clamp(16px,1.6vw,22px); border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-card) }
.ig-grid .ig-tile { margin-bottom: .45rem }
.ig-grid h3 { font-size: clamp(1.2rem,1.5vw,1.45rem) }
.ig-grid p { color: var(--s-soft); font-size: .97rem }

/* ---- Questions, and the trademark line ---- */
.ig-faq { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap: 1.4rem clamp(1.5rem,3vw,3rem); max-width: 80rem }
.ig-faq article { padding-top: 1rem; border-top: 2px solid var(--s-ink) }
.ig-faq h3 { font-size: clamp(1.2rem,1.6vw,1.5rem) }
.ig-faq p { margin-top: .6rem; color: var(--s-soft) }
/* /integrations/slack/: the hero's Slack message sent to a slate (plain HTML, no canvas). */
.ig-slack-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px,1.4vw,20px); padding: clamp(18px,2.4vw,34px) }
.ig-slack-message, .ig-slack-note { display: grid; gap: .35rem; padding: clamp(12px,1.3vw,18px); border-radius: 12px; border: 1px solid #cfd5c4; background: #fffdf4; font-size: .97rem }
.ig-slack-note { border-color: #24392d; box-shadow: 0 2px 10px rgba(0,0,0,.08) }
.ig-slack-where, .ig-slack-action, .ig-slack-kind, .ig-slack-from { color: var(--s-soft); font-size: .85rem }
.ig-slack-kind { text-transform: uppercase; letter-spacing: .04em; font-weight: 700 }
.ig-slack-arrow { font-size: 1.6rem; color: var(--s-soft) }
@media (max-width: 560px) { .ig-slack-stage { grid-template-columns: 1fr } .ig-slack-arrow { transform: rotate(90deg); justify-self: center } }
.ig-tm { max-width: 80rem; margin-top: clamp(2rem,4vw,3.2rem); padding-top: 1rem; border-top: 1px solid var(--s-line); color: #506356; font-size: .8rem; line-height: 1.5 }

@media (max-width: 1100px) { .ig-groups { grid-template-columns: minmax(0,1fr) minmax(0,1fr) } .ig-group:last-child { grid-column: 1 / -1 } .ig-group:last-child .ig-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)) } }
@media (max-width: 720px) {
  .ig-groups { grid-template-columns: minmax(0,1fr) }
  /* A phone: the marks alone, so the deck stays near the first screen; the names stay for readers. */
  .ig-works { margin-top: 1.1rem; padding-top: .9rem }
  .ig-works ul { gap: .3rem }
  .ig-works li { padding: 0; border: 0; background: none }
  .ig-works .ig-tile { width: 30px; height: 30px; border: 1px solid #d8ddd2 }
  .ig-works li > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
  .ig-cloud { grid-template-columns: repeat(2, minmax(0,1fr)) }
  .ig-cloud li { min-height: 3rem; padding: .45rem .6rem; font-size: .88rem }
}
@media (prefers-reduced-motion: reduce) { .ig-cards li { transition: none } .ig-cards li:hover { transform: none } }
/* Reduced motion, before Play: this poster's title runs through its middle, so Play waits in the lower right corner. */
.ig-player[data-state="poster"] .pp-toggle { right: 1rem; bottom: 1rem; transform: none }

/* /integrations/zoom/: status labels, the gallery of staged calls, the steps and the privacy pair */
.ig-status { align-self: flex-start; padding: .14rem .55rem; border: 1px solid currentColor; border-radius: 99px; color: #6a5a2c; font: 600 .75rem/1.5 ui-monospace,Menlo,monospace }
.ig-status.is-live { color: #1f6b45 }
.ig-shot { margin: 0 }
.ig-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px -30px #12261b99, 0 0 0 1px #12261b1f }
.ig-shot figcaption { margin-top: .7rem; color: var(--s-soft); font-size: .92rem }
.ig-shot figcaption b { color: var(--s-ink) }
.ig-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px,2.4vw,36px); margin: 0; padding: 0; list-style: none }
.ig-shot-note, .ig-more { margin-top: 1.2rem; color: var(--s-soft); font-size: .92rem }
.ig-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: clamp(12px,1.2vw,18px); margin: 0; padding: 0; list-style: none; counter-reset: ig-step }
.ig-steps li { padding: clamp(16px,1.6vw,22px); border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-card); counter-increment: ig-step }
.ig-steps li::before { content: counter(ig-step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-bottom: .6rem; border-radius: 50%; background: var(--s-ink); color: #fff; font-weight: 700 }
.ig-steps h3 { font-size: clamp(1.1rem,1.3vw,1.3rem) }
.ig-steps p { margin-top: .45rem; color: var(--s-soft); font-size: .97rem }
.ig-privacy { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: clamp(20px,3vw,48px) }
.ig-faq.ig-faq-one { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem 1.6rem }
@media (max-width: 860px) { .ig-gallery, .ig-privacy { grid-template-columns: 1fr } }
@media (max-width: 560px) { .ig-faq.ig-faq-one { grid-template-columns: 1fr } }
