/* ===========================================================================
   Real World Impact — page-specific styles
   Used by: /real-world
   Depends on: colorography.css (tokens), global.css (layout/nav/footer)
   =========================================================================== */

body { background: #fff; }

/* -------- Hero (Figma 1463:41459) -------------------------------------- */
.rw-hero {
  background: linear-gradient(180deg, #1F212E 0%, #2B418D 50%, #3661ED 100%);
  padding-top: 12rem;
  padding-bottom: 12rem;
  color: #fff;
}

.rw-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.rw-hero-title {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 72px;
  line-height: 1.3;
  letter-spacing: -2.8px;
  color: var(--color-primary-300);   /* #90A6EE — the "Real " words */
  margin: 0;
  max-width: 44rem;
}
.rw-hero-emph { color: #fff; }       /* prompts. / results. / impact. */

.rw-hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-primary-100);   /* #E0EBFE */
  margin: 0;
  max-width: 800px;
}
.rw-hero-sub strong { font-weight: 600; }

/* ===========================================================================
   List section (sidebar filters + 3-col card grid per analysis section)
   Figma 1463:41672. Card spec 1463:41702.
   =========================================================================== */
.rw-list-section {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 96px;
}

.rw-list-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* -------- Sidebar filters ----------------------------------------------- */
.rw-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
}

.rw-filter-group {
  border-bottom: 1px solid var(--color-neutral-100);
  padding: 12px 4px;
}
.rw-filter-head {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}
.rw-filter-head-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-neutral-600);
}
.rw-filter-head-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-neutral-600);
}
.rw-filter-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #1F212E;
  transition: transform 0.15s ease;
}
.rw-filter-group.is-collapsed .rw-filter-caret { transform: rotate(-90deg); }
.rw-filter-group.is-collapsed .rw-filter-options { display: none; }

.rw-filter-options {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rw-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text-primary);
  outline: 0;
}
.rw-filter-option:focus-visible .rw-checkbox { box-shadow: 0 0 0 2px rgba(54,97,237,0.25); }
.rw-checkbox {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #D4D9EA;
  background: #fff;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rw-checkbox svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.rw-filter-option.is-checked .rw-checkbox {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
}
.rw-filter-option.is-checked .rw-checkbox svg { opacity: 1; }

/* -------- Section headers + grid ---------------------------------------- */
.rw-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}
.rw-section { scroll-margin-top: 100px; padding-top: 0; padding-bottom: 0; }
.rw-section[hidden] { display: none; }
.rw-section-head {
  position: sticky;
  top: 80px;
  z-index: 5;
  background: #fff;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  margin: 0 0 16px;
}
.rw-section-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--color-neutral-200);
  flex-shrink: 0;
}
.rw-section-title {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: var(--color-neutral-800);
  margin: 0;
}

/* Sub-section header (3.1, 3.2, …) — smaller and grey/600. */
.rw-section--sub .rw-section-head { gap: 12px; padding: 12px 0; }
.rw-section--sub .rw-section-num,
.rw-section--sub .rw-section-title {
  font-size: 24px;
  color: var(--color-neutral-600);
  letter-spacing: -0.3px;
}

/* Container row (e.g. "03 GTM Reporting") — header only, no card grid,
   no sticky (sub-section headers below take over the sticky slot). */
.rw-section--container .rw-section-head { position: static; }

/* True masonry via CSS columns — each card flows into the shortest column.
   column-gap acts as the 16px "spacer" between columns (CSS columns can't
   accept literal sibling divs between auto-generated columns). */
.rw-section-grid {
  column-count: 3;
  column-gap: 16px;
  column-fill: balance;
}

/* -------- Prompt card (Figma 1463:41702) -------------------------------- */
.rw-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 8px;
  box-shadow: 2px 8px 8px 0 rgba(122, 122, 122, 0.08);
  /* Keep cards intact within a column and add vertical space between them. */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  width: 100%;
}
.rw-card[hidden] { display: none; }

.rw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}
.rw-card-integrations {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rw-card-logo {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rw-card-times {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  background: var(--color-primary-50);
  border: 1px solid var(--color-neutral-100);
  border-radius: 60px;
}
.rw-card-times::after {
  content: "Faster with Petavue";
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  padding: 8px 12px;
  background: #fff;
  color: var(--color-neutral-800);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid var(--color-neutral-100);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(31, 33, 46, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.rw-card-times:hover::after { opacity: 1; }
.rw-time-manual,
.rw-time-petavue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.rw-time-manual {
  color: var(--color-neutral-600);
  text-decoration: line-through;
}
.rw-time-petavue {
  padding: 6px;
  background: #EBFFF3;
  border: 1px solid var(--color-neutral-100);
  border-radius: 60px;
  color: #08BD50;
}
.rw-time-icon { width: 14px; height: 14px; flex-shrink: 0; }
.rw-time-icon-manual { width: 16px; height: 16px; flex-shrink: 0; }

.rw-card-prompt {
  margin: 0;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-neutral-800);
}

.rw-card-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-neutral-100);
}

.rw-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rw-card-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1;
  color: var(--color-neutral-600);
}
.rw-card-foot-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-neutral-500);
}

/* Complexity pill — hidden on cards (filter still works). */
.rw-card-complexity { display: none; }

/* ===========================================================================
   Footer CTA (Figma 1463:41745) — "GTM Teams are seeing real-life impact"
   Dark background with the grid SVG overlay at 20% opacity baked in.
   =========================================================================== */
.rw-cta {
  position: relative;
  overflow: hidden;
  background: #1F212E;
  padding-top: 120px;
  padding-bottom: 120px;
  color: #fff;
}
.rw-cta-grid {
  position: absolute;
  inset: 0;
  background-image: url('/assets/marketing/dark-grid.svg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.rw-cta .padding-global { position: relative; z-index: 1; }

.rw-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}
.rw-cta-title {
  margin: 0;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.5;
  letter-spacing: -0.96px;
  color: var(--color-primary-300);
}
.rw-cta-emph { color: #fff; }

/* ===========================================================================
   Dark footer (scoped to this page only — real-world.css only loads here).
   Overrides the default light gradient + flips text colors.
   =========================================================================== */
.footer {
  background: var(--color-neutral-900) !important;
}
.footer .footer-logo img { filter: brightness(0) invert(1); }
.footer .footer-tagline,
.footer .footer-col-title,
.footer .footer-contact-label {
  color: var(--color-neutral-400) !important;
}
.footer .footer-col a {
  color: var(--color-neutral-200) !important;
}
.footer .footer-col a:hover { color: #fff !important; }
.footer .footer-social a { color: var(--color-neutral-400); }
.footer .footer-social a:hover { color: #fff; }
.footer .footer-bottom-links a,
.footer .footer-copyright {
  color: var(--color-neutral-400) !important;
}
.footer .footer-bottom-links a:hover { color: #fff !important; }
.footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); }
.footer .footer-watermark img { filter: brightness(0) invert(1); opacity: 0.4; }

/* -------- Responsive ---------------------------------------------------- */
@media (max-width: 1199px) {
  .rw-section-grid { column-count: 2; }
}
@media (max-width: 991px) {
  .rw-hero { padding-top: 80px; padding-bottom: 88px; }
  .rw-hero-title { font-size: 56px; letter-spacing: -2px; }
  .rw-list-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .rw-section-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .rw-hero {
    min-height: 60vh;
    padding-top: 64px;
    padding-bottom: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .rw-hero .padding-global { padding-left: 20px; padding-right: 20px; width: 100%; }
  .rw-hero-title { font-size: 48px; letter-spacing: -1.5px; }
  .rw-hero-sub { font-size: 17px; }
  .rw-cta { padding-top: 72px; padding-bottom: 72px; }
  .rw-cta-inner { gap: 32px; }
  .rw-cta-title { font-size: 32px; letter-spacing: -0.6px; }
  .rw-list-section { padding-top: 40px; padding-bottom: 56px; }
  .rw-list-section .padding-global { padding-left: 20px; padding-right: 20px; }
  .rw-list-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rw-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .rw-filter-group { flex: 1 1 200px; border-bottom: 0; padding: 0; }
  .rw-section-grid { column-count: 1; }
  .rw-section-head { gap: 12px; margin-bottom: 16px; }
  .rw-section-num { font-size: 22px; }
  .rw-section-title { font-size: 24px; letter-spacing: -0.4px; }
  .rw-content { gap: 48px; }
}
@media (max-width: 480px) {
  .rw-hero { padding-top: 48px; padding-bottom: 56px; }
  .rw-hero-title { font-size: 34px; letter-spacing: -1px; }
  .rw-hero-sub { font-size: 16px; }
}
