/* ------------------------------------------------------------------
   /features/information-requests

   Loaded after feature-page.css, integrations.css and sms-whatsapp.css,
   which supply the hero, jump pills, bands (`ix-`) and the band colours,
   notes and floating labels (`sw-`). This file holds only the hero
   request card and the screenshot frames: everything here carries an
   `ir-` prefix.
   ------------------------------------------------------------------ */

.ir-hero-inner {
  grid-template-columns: minmax(0, 1fr) 440px;
}

/* Seven bands, so the colours run the other way from the SMS page: the last band is white, and the
   related-features block below it (beige) has no white strip between two beiges. */
.sw-band.ir-band:nth-of-type(odd) {
  background: var(--bg);
}

.sw-band.ir-band:nth-of-type(even) {
  background: white;
}

/* ---------- Hero request card ---------- */

.ir-hero-art {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.ir-request {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background: white;
  color: var(--primary);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ir-request-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ir-request-head strong {
  font-size: 1rem;
}

.ir-status {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(96, 140, 230, 0.16);
  color: #2f5fc4;
  white-space: nowrap;
}

.ir-counts {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.ir-counts .ir-c-out {
  color: #2f5fc4;
}

.ir-counts .ir-c-review {
  color: #b5650d;
}

.ir-counts .ir-c-done {
  color: #2f7d3a;
}

.ir-bar {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f2;
}

.ir-bar span:nth-child(1) {
  background: #22c55e;
}

.ir-bar span:nth-child(2) {
  background: #fbbf24;
}

.ir-bar span:nth-child(3) {
  background: #93c5fd;
}

.ir-items {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.ir-items li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.82rem;
}

.ir-items li > svg {
  margin-top: 2px;
  color: var(--gray, #6b7b80);
}

.ir-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f5;
  font-size: 0.72rem;
  color: var(--gray, #6b7b80);
}

.ir-line b {
  color: var(--primary);
}

.ir-answer {
  display: block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f7f7f5;
  font-size: 0.74rem;
  color: #4a5a5f;
}

.ir-pill {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.ir-pill-done {
  background: rgba(34, 197, 94, 0.15);
  color: #2f7d3a;
}

.ir-pill-review {
  background: rgba(251, 191, 36, 0.25);
  color: #8a5a00;
}

.ir-pill-out {
  background: rgba(96, 140, 230, 0.16);
  color: #2f5fc4;
}

/* Both labels sit on the card's lower edge, clear of the item text */
.ir-float-a {
  left: -22px;
  bottom: 14px;
}

.ir-float-b {
  right: -14px;
  bottom: -24px;
}

/* ---------- Screenshots ---------- */

/* A real screenshot in a band: the app's own colours on a soft card, so it reads as one picture
   against the white and the beige bands alike. */
.ir-shot {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.16);
  border: 1px solid rgba(34, 54, 60, 0.08);
  background: white;
  overflow: hidden;
}

.ir-shot-bare {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ir-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two shots, one overlapping the other: the task step in front of the workflow editor */
.ir-shot-pair {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 90px;
}

.ir-shot-pair .ir-shot + .ir-shot {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 72%;
}

/* ---------- Guides ---------- */

/* The two guide cards at the foot of the feature page read as one pair */
.related-guide + .related-guide {
  margin-top: -36px;
}

/* A screenshot inside a guide section */
.ir-guide-shot {
  margin: 24px 0 28px;
}

.ir-guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(34, 54, 60, 0.1);
  box-shadow: 0 12px 32px rgba(34, 54, 60, 0.1);
}

/* A dialog captured on white already has its own border and shadow: no second frame */
.ir-guide-shot-bare img {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ir-guide-shot-narrow img {
  max-width: 560px;
  margin: 0 auto;
}

.ir-guide-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray, #6b7b80);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ir-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ir-float-a {
    left: 0;
  }

  .ir-float-b {
    right: 0;
  }

  .ir-shot-pair {
    padding-bottom: 0;
  }

  .ir-shot-pair .ir-shot + .ir-shot {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
}
