/* ==========================================================================
   Risingline Blueprint Pattern — rl-blueprint.css

   Reference site design overlay. Scoped to body.rl-blueprint.
   REMOVAL: Remove the body class + this <link> for client sites.

   Hatching gutters use z-index: -1 (behind all content).
   ========================================================================== */


/* --- Variables --- */
body.rl-blueprint {
  --bp-line: rgba(0, 0, 0, 0.06);
  --bp-hatch: rgba(0, 0, 0, 0.04);
  --bp-gutter: 40px;
  --bp-content: 1320px;
  background-color: #fff;
  position: relative;
  z-index: 0;
}


/* --- Hatching gutter strips (fixed, behind ALL content) --- */
body.rl-blueprint::before,
body.rl-blueprint::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--bp-gutter);
  background-image: repeating-linear-gradient(315deg, var(--bp-hatch) 0, var(--bp-hatch) 1px, transparent 0, transparent 50%);
  background-size: 10px 10px;
  border-left: 1px solid var(--bp-line);
  border-right: 1px solid var(--bp-line);
  pointer-events: none;
  z-index: -1;
}

body.rl-blueprint::before {
  right: calc(50% + var(--bp-content) / 2);
}

body.rl-blueprint::after {
  left: calc(50% + var(--bp-content) / 2);
}

@media (max-width: 1480px) {
  body.rl-blueprint::before,
  body.rl-blueprint::after {
    display: none;
  }
}


/* --- Header: no shadow, white bg above gutters --- */
body.rl-blueprint .site-header {
  box-shadow: none;
  border-bottom: 1px solid var(--bp-line);
  background: #fff;
  z-index: 1040;
}


/* --- Footer --- */
body.rl-blueprint .site-footer {
  background: #fff;
}


/* ==========================================================================
   HERO — full-width CSS Grid with borders in CSS (not inline)
   ========================================================================== */

.bp-hero {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  border-top: 1px solid var(--bp-line);
}

@media (min-width: 768px) {
  .bp-hero { margin-top: 5rem; }
}

@media (min-width: 992px) {
  .bp-hero {
    margin-top: 6rem;
    grid-template-columns: 58fr 42fr;
  }
}

.bp-hero-left {
  padding: 2rem var(--rl-container-padding) 3rem;
}

.bp-hero-right {
  padding: 2rem var(--rl-container-padding) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile: stack, top border replaces left border */
@media (max-width: 991.98px) {
  .bp-hero-right {
    border-top: 1px solid var(--bp-line);
  }
}

/* Desktop: left border on right column, content aligns with .container */
@media (min-width: 992px) {
  .bp-hero-left {
    padding-left: max(var(--rl-container-padding), calc(50vw - var(--bp-content) / 2 + var(--rl-container-padding)));
    padding-right: 3rem;
  }

  .bp-hero-right {
    border-left: 1px solid var(--bp-line);
    padding-left: 2.5rem;
    padding-right: max(var(--rl-container-padding), calc(50vw - var(--bp-content) / 2 + var(--rl-container-padding)));
  }
}

.bp-hero-label {
  font-family: var(--rl-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-color-text-light);
  margin: 0 0 0.5rem;
}

/* Face properties come from the base h1 rule — the framework ladder is
   keyed to this hero, one source of truth. */
.bp-hero h1 {
  /* Hero keeps the 96px display size; interior h1s ride the (smaller)
     ladder token per the 2026-07-28 hierarchy bump-down. */
  font-size: clamp(48px, 7vw + 16px, 96px);
  margin: 0.5rem 0 0;
}

.bp-hero-sub {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--rl-color-text-light);
  max-width: 42rem;
  text-wrap: pretty;
}

/* Hero benefit list — replaces the bold three-line sub. Check marks in
   the brand primary (the framework's feature-list language); line-height
   matches the subs so the swap is height-neutral. */
.bp-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--rl-color-text-light);
}

.bp-hero-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.bp-hero-list .bi {
  color: var(--rl-color-primary);
  flex-shrink: 0;
}

/* Button separator — negative margins pull border to cell edges.
   Gap above the rule is 0.5rem (was 1.5rem): the 32px reclaimed offsets
   the third benefit line, keeping the right column from outgrowing the
   h1 column. flex:1 + align-items lets the button center vertically in
   whatever space remains below the rule (bp-hero-right is flex column). */
.bp-hero-buttons {
  border-top: 1px solid var(--bp-line);
  flex: 1 1 auto;
  align-items: center;
  /* no padding-top: the flex centering must measure from the rule itself,
     or the button sits visibly low in the cell */
  padding-top: 0;
  margin-top: 0.5rem;
  margin-left: calc(-1 * var(--rl-container-padding));
  margin-right: calc(-1 * var(--rl-container-padding));
  padding-left: var(--rl-container-padding);
  padding-right: var(--rl-container-padding);
}

@media (min-width: 992px) {
  .bp-hero-buttons {
    margin-left: -2.5rem;
    margin-right: calc(-1 * max(var(--rl-container-padding), calc(50vw - var(--bp-content) / 2 + var(--rl-container-padding))));
    padding-left: 2.5rem;
    padding-right: max(var(--rl-container-padding), calc(50vw - var(--bp-content) / 2 + var(--rl-container-padding)));
  }
}

/* Hero buttons: dark primary pill style */
.bp-hero-buttons .rl-btn {
  background-color: var(--rl-color-text);
  border-color: var(--rl-color-text);
  color: #fff;
  border-radius: 999px;
}

.bp-hero-buttons .rl-btn:hover {
  background-color: #000;
  border-color: #000;
}

.bp-hero-buttons .rl-btn-outline {
  border-color: #d1d5db;
  color: var(--rl-color-text);
  border-radius: 999px;
}

.bp-hero-buttons .rl-btn-outline:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: var(--rl-color-text);
}


/* ==========================================================================
   STATS BAR
   ========================================================================== */

.bp-stats-bar {
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
}

.bp-stats-row {
  display: flex;
  align-items: stretch;
  font-size: 0.8125rem;
  color: var(--rl-color-text-light);
}

.bp-stats-row > span:not(.bp-stats-sep) {
  padding: 0.875rem 1.5rem 0.875rem 0;
}

.bp-stats-row > span:first-child {
  padding-left: 0;
}

.bp-stats-row strong {
  color: var(--rl-color-text);
  font-family: var(--rl-font-mono);
}

.bp-stats-sep {
  width: 1px;
  background: var(--bp-line);
  align-self: stretch;
  flex-shrink: 0;
  margin-right: 1.5rem;
}


/* Full-width horizontal rule — sits OUTSIDE containers */
.bp-hr {
  border: none;
  border-top: 1px solid var(--bp-line);
  margin: 0;
}


/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.bp-section-heading {
  font-family: var(--rl-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rl-color-text-light);
  margin: 0 0 2.5rem;
}


/* ==========================================================================
   HOMEPAGE SECTION UTILITIES
   ========================================================================== */

/* Section spacing on homepage */
.bp-section-top { padding: 5rem 0 0; }
.bp-section-spaced { padding: 5rem 0 0; margin-top: 4rem; }
.bp-section-full { padding: 5rem 0 5rem; margin-top: 4rem; }
.bp-section-heading-spaced { margin-top: 2.5rem; }

/* Wireframe tile stat numbers */
.bp-tile-stat {
  font-family: var(--rl-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rl-color-primary);
  line-height: 1;
}

/* Wireframe tile accordion rows */
.bp-tile-accordion-row {
  padding: 7px 10px;
  background: #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bp-tile-accordion-row + .bp-tile-accordion-row {
  border-top: 1px solid #e5e7eb;
}


/* ==========================================================================
   COMPONENT TILES
   ========================================================================== */

.bp-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.bp-tile:hover {
  transform: translateY(-3px);
  color: inherit;
}

.bp-tile:focus-visible {
  outline: 3px solid var(--rl-color-focus);
  outline-offset: 2px;
  transform: translateY(-3px);
}

.bp-tile-img {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.75rem 1.25rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bp-tile-img::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 10%;
  right: 10%;
  height: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.03), transparent);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

.bp-tile-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding: 0 0.125rem;
}

.bp-tile-label h3 {
  font-family: var(--rl-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rl-color-text);
  margin: 0;
}

.bp-tile-label span {
  font-size: 0.8125rem;
  color: var(--rl-color-text-light);
  white-space: nowrap;
}

.bp-tile-coming {
  opacity: 0.4;
  pointer-events: none;
}


/* ==========================================================================
   WIREFRAME ELEMENTS (inside tiles)
   ========================================================================== */

.bp-w-line      { height: 3px; background: #d1d5db; border-radius: 2px; }
.bp-w-line-dark { height: 4px; background: #374151; border-radius: 2px; }
.bp-w-line-accent { height: 3px; background: var(--rl-color-primary); border-radius: 2px; }
.bp-w-block     { background: #e5e7eb; border-radius: 6px; }
.bp-w-block-accent { background: var(--rl-color-primary); border-radius: 6px; }
.bp-w-dot       { width: 8px; height: 8px; border-radius: 50%; background: var(--rl-color-primary); flex-shrink: 0; }

.bp-w-chrome     { display: flex; gap: 5px; margin-bottom: 0.75rem; }
.bp-w-chrome-dot { width: 7px; height: 7px; border-radius: 50%; }
.bp-w-chrome-dot:nth-child(1) { background: #ef4444; }
.bp-w-chrome-dot:nth-child(2) { background: #f59e0b; }
.bp-w-chrome-dot:nth-child(3) { background: #22c55e; }


/* ==========================================================================
   DEMO HEADER OVERRIDES (logos inside page content, not site nav)
   ========================================================================== */

main .navbar-brand img {
  height: 67px;
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .bp-tile:hover,
  .bp-tile:focus-visible {
    transform: none;
  }
}
