/* ==========================================================================
   Automations — Hero (rp-automations-hero) · LP-family match (2026-07-24, Mo):
   hero = local-payroll EN, pixel-matched. Measured LP reference (1400px):
   pills above h1 (injected via render_block, refs 7570/7571) · h1 2.95rem/56
   700 #021143 normal-tracking mb16 · sub 16/24 400 #545454 mb16 · CTA h57 r8
   16.25px/500 pad 15x32 #114EF7 (ctas mt 27) · cols 626/610, row centered ·
   img 610x556 contain (new asset automation_hero_image_gm_optimized.webp via
   render_block swap) · img top gap 40 · bg white. Tablet 768-991: h1 36/53,
   img 65% centered; mobile <=767: h1 32/40, img 100% (LP responsive values).
   ========================================================================== */
.rp-automations-hero {
  /* LP hero band gradient (transparent -> #e4ebfe by 120px). The band visually
     CONTINUES through the brands bar below (see qa-fixes-global.css automations
     block: brands bar gets solid #e4ebfe + 48px rounded bottom, like LP where
     the brands sit INSIDE the rounded hero band). */
  background: linear-gradient(rgba(228, 235, 254, 0), #e4ebfe 120px, #e4ebfe);
}
.rp-automations-hero__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.rp-automations-hero__text { flex: 0 1 626px; max-width: 626px; }
.rp-automations-hero__media { flex: 0 1 610px; min-width: 0; }
.rp-automations-hero__img { display: block; width: 610px; height: 556px; object-fit: contain; max-width: 100%; }

.rp-automations-hero__title {
  font-weight: 700;
  font-size: 2.95rem;
  line-height: 56px;
  letter-spacing: normal;
  color: #021143;
  margin: 0 0 16px;
}

.rp-automations-hero__sub {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #545454;
  margin: 0 0 16px;
}

.rp-automations-hero__ctas { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 27px; }
.rp-automations-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 57px;
  background: #114EF7;
  color: #fff;
  font-weight: 500;
  font-size: 16.25px;
  line-height: 1;
  text-transform: capitalize;
  padding: 15px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.rp-automations-hero__cta:hover { background: #0E45D6; color: #fff; }
.rp-automations-hero__cta--ghost {
  background: #fff;
  color: #114EF7;
  border: 1px solid #114EF7;
}
.rp-automations-hero__cta--ghost:hover { background: #F0F4FE; color: #114EF7; }

@media (max-width: 991px) {
  /* side gutters match LP's effective content width: 40 tablet (LP 716 @800), 18 mobile (LP 354 @390) */
  .rp-automations-hero__inner { flex-direction: column; text-align: start; padding: 40px; gap: 36px; align-items: flex-start; }
  .rp-automations-hero__text { flex: 0 1 auto; max-width: 100%; }
  /* DEAD-SPACE FIX (2026-06-30, Mohamed mobile audit): the inner is a COLUMN flex here, so the
     desktop flex-basis on the media became a *height* (flex-basis in column) while the
     image is shorter -> empty space below it. Reset to content height. */
  .rp-automations-hero__media { flex: 0 1 auto; width: 100%; }
  .rp-automations-hero__ctas { justify-content: flex-start; }
  .rp-automations-hero__title { font-size: 36px; line-height: 53px; }
  .rp-automations-hero__sub { margin-bottom: 16px; font-size: 20px; line-height: 28px; } /* LP tablet sub 20/28 */
  .rp-automations-hero__img { width: 65%; height: auto; margin: 0 auto; }
}
@media (max-width: 767px) {
  /* LP mobile: 16px gutters, CTA h56 (.928rem/22.27 pad 16x4 like LP's mb-grow btn) */
  .rp-automations-hero__inner { padding: 40px 16px; }
  .rp-automations-hero__title { font-size: 32px; line-height: 40px; }
  .rp-automations-hero__img { width: 100%; }
  .rp-automations-hero__cta { height: 56px; font-size: 0.928rem; line-height: 1.5; padding: 16px 4px; width: 100%; }
}
@media (max-width: 600px) {
  .rp-automations-hero__cta { width: 100%; }
}

/* ── Section-header casing (2026-06-30, Figma 10136:6665). The two section headings
   ("See Automations in Action", "Transform the Way You Work with RemotePass' Automations") are
   stored in correct Title Case but (a) inc/sentence-case.php sentence-cased them and (b) the frozen
   migration.css .new-rp-section-header chain text-transform:capitalize over-capped the small words.
   Fix: rp-keepcase on the headings (opts out of the sentence-case filter — added in blocks 7572/7573)
   + this reset of the capitalize chain so Figma's exact Title Case renders. rp-keepcase carries no CSS,
   so the reset is scoped here. (0,3,0)+!important beats the chain's (0,5,0) non-important rule. */
.rp-automations .new-rp-section-header.rp-keepcase { text-transform: none !important; }
