/* ============================================================
   reporting-analytics.css â€” Mastery Logistics Systems
   Reporting & Analytics page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .image-placeholder â€” same component used on other capability
     pages. Modifiers --hero, --positioning for the appropriate
     aspect ratios.
   - .banner â€” slim warm band introduced on Visibility & Tracking.
   - .feature / .feature--reverse â€” same alternating two-column
     feature block used on other capability pages.
   - .cta-banner â€” standard closing CTA.

   NEW COMPONENTS INTRODUCED HERE:
   - .positioning â€” centered block with title + full-width AI image
     below. Different format from other sections.
   - .feature__image â€” carrier scorecard visual in the Omni block;
     a self-framed SVG, so the CSS only sizes and shadows it.
   - .leo — Leo callout strip (chat visual comes from shared /leo.css).

   PAGE STRUCTURE:
   1. Hero (dark, two-column with AI image right)
   2. Slim banner (light warm)
   3. Positioning block (light warm, centered title + full-width image)
   4. Feature: Snowflake-native foundation (white, bullets only)
   5. Feature: Omni embedded analytics (white, alt layout, bullets only)
   6. Leo callout strip (light warm, compact, chat-style visual)
   7. CTA banner (dark)
============================================================ */

/* ============================================================
   SHARED â€” IMAGE PLACEHOLDER COMPONENT
   Branded copper-on-dark frame for any unbuilt image zone.
============================================================ */
.image-placeholder {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(252, 147, 101, 0.16) 0%, transparent 62%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.image-placeholder__label {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(252, 147, 101, 0.9);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 1rem;
}

.image-placeholder__note {
  position: relative;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder--hero {
  aspect-ratio: 16 / 11;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-placeholder--positioning {
  aspect-ratio: 16 / 9;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SECTION 1 â€” HERO
   Dark. Two-column matching other capability page patterns.
============================================================ */
.ra-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ra-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(178, 93, 66, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.ra-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.ra-hero__content {
  max-width: 480px;
}

.ra-hero .eyebrow {
  color: var(--color-copper-light);
}

.ra-hero__headline {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.ra-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 460px;
}

.ra-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ra-hero__media {
  position: relative;
  width: 100%;
}

/* The hero visual has a transparent background and carries its own
   copper glow on each panel, so no frame or shadow here — a
   box-shadow would draw a rounded rectangle around an image that has
   no card behind it. */
.ra-hero__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTION 2 â€” SLIM BANNER
   Light warm. Same component as Visibility & Tracking and
   Workflow Automation pages.
============================================================ */
.banner {
  background: #faf6f3;
  padding: 1.75rem 0;
  border-top: 0.5px solid rgba(178, 93, 66, 0.12);
  border-bottom: 0.5px solid rgba(178, 93, 66, 0.12);
  text-align: center;
}

.banner__text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.banner__highlight {
  color: var(--color-copper);
}

/* ============================================================
   SECTION 3 â€” POSITIONING BLOCK
   Light warm. Centered title + brief sub above a full-width
   AI-generated image. Different format from the side-by-side
   feature blocks â€” establishes the page's argument before the
   feature blocks deliver the proof.
============================================================ */
.positioning {
  background: var(--color-white);
}

.positioning__head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.positioning__head .eyebrow {
  color: var(--color-copper-dark);
}

.positioning__heading {
  color: var(--color-text-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.5rem 0 0.875rem;
}

.positioning__head .text-lead {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.positioning__media {
  width: 100%;
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.positioning__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTION 4 â€” SNOWFLAKE FEATURE BLOCK
   White. Standard side-by-side feature. Content left, Snowflake
   partner visual right.
============================================================ */
.feature {
  background: var(--color-white);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__media {
  order: 1;
}

.feature__heading {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1.75rem;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.feature__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(178, 93, 66, 0.12);
  color: var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature__media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SECTION 4 - OMNI DASHBOARD VISUAL
   White. Standard feature layout, carrier scorecard visual right.

   The scorecard is a self-framed infographic SVG - it brings its own
   dark card, grid and internal animation - so the CSS only sizes it
   and adds the standard black drop shadow for a light section.
============================================================ */
.feature__image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.16));
}

/* ============================================================
   SECTION 6 â€” LEO CALLOUT STRIP
   Light warm. Compact card pattern (same as Carrier compliance
   partners and Visibility partners strips). Content + CTA on
   the left, chat-style visual on the right.
============================================================ */
.leo {
  background: #faf6f3;
}

.leo__card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

/* Inside the strip card the shared panel sits flush in its grid cell. */
.leo__card .leo-chat {
  border-radius: 0;
  box-shadow: none;
}

.leo__content {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leo__heading {
  color: var(--color-text-primary);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.625rem;
}

.leo__content p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}

/* ----- CHAT MESSAGE BUBBLES ----- */

/* ============================================================
   SECTION 7 â€” OMNI ANNOUNCEMENT (newsroom callout)
   White, separating the warm Leo strip above from the dark CTA
   below. The whole card is the link, so the "Learn more" cue is a
   span rather than a nested anchor.
============================================================ */
.announce {
  background: var(--color-white);
}

.announce__card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.announce__card:hover,
.announce__card:focus-visible {
  border-color: rgba(178, 93, 66, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.announce__media {
  position: relative;
  overflow: hidden;
  background: #1c1715;
}

.announce__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announce__content {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.announce__tag {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-copper-dark);
  background: rgba(252, 147, 101, 0.12);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.875rem;
}

.announce__heading {
  color: var(--color-text-primary);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.625rem;
}

.announce__sub {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0 0 1.25rem;
}

.announce__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-copper);
}

.announce__arrow {
  transition: transform 0.2s ease;
}

.announce__card:hover .announce__arrow,
.announce__card:focus-visible .announce__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .announce__card,
  .announce__arrow {
    transition: none;
  }

  .announce__card:hover,
  .announce__card:focus-visible {
    transform: none;
  }

  .announce__card:hover .announce__arrow,
  .announce__card:focus-visible .announce__arrow {
    transform: none;
  }
}

/* ============================================================
   SECTION 8 â€” CTA BANNER
   Standard treatment matching other capability pages.
============================================================ */
.cta-banner {
  background: #111111;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE â€” MOBILE OVERRIDES
============================================================ */
@media (max-width: 768px) {

  /* The slim strip is a single line of display copy that earns its
     place on a wide screen but reads as another wall of text on a
     phone. Hidden on mobile only; desktop is unchanged. */
  .banner {
    display: none;
  }

  /* Hero â€” single column */
  .ra-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Single column, with the CTA below the visual rather than above
     it. .ra-hero__actions is nested inside .ra-hero__content, so it
     cannot be ordered past .ra-hero__media on its own; display:
     contents lifts the copy's children into the hero grid so all five
     can be ordered together. The wrapper is a plain div, so nothing
     is lost from the accessibility tree.

     Row gap drops to 0 because it would otherwise apply between every
     line of copy, not just between the blocks. Each element's own
     margins space them, exactly as they do on desktop. */
  .ra-hero__inner {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .ra-hero__content {
    display: contents;
  }

  .ra-hero .eyebrow {
    order: 1;
  }

  .ra-hero__headline {
    order: 2;
  }

  .ra-hero__sub {
    order: 3;
  }

  .ra-hero__media {
    order: 4;
  }

  .ra-hero__actions {
    order: 5;
    margin-top: 2rem;
    flex-direction: column;
    align-items: stretch;
  }

  .ra-hero__actions > a {
    text-align: center;
    justify-content: center;
  }

  /* Banner â€” smaller padding */
  .banner {
    padding: 1.25rem 0;
  }

  /* Positioning â€” tighter spacing */
  .positioning__head {
    margin-bottom: 1.75rem;
  }

  /* Feature blocks - single column, content above the visual. The
     reversed variant needs its own pair below: its desktop ordering is set
     with two classes, so a single-class rule here loses on specificity and
     its visual would stay on top. */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature__media,
  .feature--reverse .feature__media {
    order: 2;
  }

  .feature__content,
  .feature--reverse .feature__content {
    order: 1;
  }

  /* Leo callout â€” stack on mobile */
  .leo__card {
    grid-template-columns: 1fr;
  }

  .leo__content {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .leo__card .leo-chat {
    min-height: 220px;
    order: 2;
  }

  /* Announcement callout â€” stack, thumbnail on top at a fixed
     ratio so it does not stretch to the copy's height. */
  .announce__card {
    grid-template-columns: 1fr;
  }

  .announce__media {
    aspect-ratio: 16 / 9;
  }

  .announce__content {
    padding: 1.75rem 1.5rem;
  }

  /* CTA heading shrinks gracefully */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}
