/* ================================================================
   READYLAYER — layer-builds.css
   Page-specific styles for /services/layer-builds.
   Load order: after main.css, services.css, framework.css,
               foundation-review.css
   All new classes prefixed lb- to avoid collision.

   Reused — zero new CSS needed:
     main.css:             rl-eyebrow, rl-btn-primary, rl-btn-ghost,
                           rl-header/nav, rl-footer-*, reveal, all vars
     services.css:         svc-hero (dark shell), svc-page-cta /
                           svc-page-cta-inner / svc-cta-row (bottom CTA)
     framework.css:        frm-layer-badge / frm-layer-badge--l1–l4,
                           frm-two-col (sequence + full-programme sections)
     foundation-review.css: fr-breadcrumb, fr-hero-h1, fr-hero-sub,
                            fr-faq-* (entire FAQ accordion),
                            fr-cta-reassurance / fr-cta-r (CTA strip)

   foundation-review.js reused as-is — the accordion targets
   .fr-faq-items which this page uses directly.

   New in this file:
     lb-hero-inner / lb-prereq-notice — hero width + prerequisite callout
     lb-layer-nav — sticky quick-nav bar with coloured-dot layer pills
     lb-sequence / lb-stack-diagram / lb-sd-* — dependency stack diagram
     lb-layer-section / lb-ls-* — repeating L1–L4 section pattern:
       header (badge + title + subtitle + intro + price tag)
       body (2-col: work items + stakeholders)
       outcome grid (3-col deliverable blocks)
     lb-honest / lb-hc-* — dark "honest about" section
     lb-full-programme / lb-fp-* — full programme inclusions + dark card
   ================================================================ */


/* ----------------------------------------------------------------
   HERO INNER + PREREQUISITE NOTICE
   ---------------------------------------------------------------- */
.lb-hero-inner { max-width: 780px; }

/* Prerequisite callout — amber-tinted inline notice */
.lb-prereq-notice {
  display:        inline-flex;
  align-items:    flex-start;
  gap:            0.85rem;
  background:     rgba(200,80,42,.1);
  border:         1px solid rgba(200,80,42,.25);
  padding:        0.85rem 1.25rem;
  animation:      rl-fadeUp 0.8s 0.2s ease forwards;
  max-width:      640px;
}

.lb-prereq-icon {
  font-size:   0.9rem;
  flex-shrink: 0;
  color:       #e8855c;
  margin-top:  1px;
}

.lb-prereq-text {
  font-size:   0.82rem;
  color:       rgba(245,242,236,.7);
  line-height: 1.55;
}
.lb-prereq-text a {
  color:           #e8855c;
  text-decoration: none;
  border-bottom:   1px solid rgba(200,80,42,.3);
  transition:      border-color 0.2s;
}
.lb-prereq-text a:hover { border-color: #e8855c; }


/* ----------------------------------------------------------------
   LAYER QUICK-NAV BAR
   Sits flush below svc-hero, not sticky — too many sections
   on this page for sticky to be useful.
   ---------------------------------------------------------------- */
.lb-layer-nav {
  background:    rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding:       1rem 0;
}

.lb-layer-nav-inner {
  display:  flex;
  gap:      0.5rem;
  flex-wrap: wrap;
}

.lb-ln-pill {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  padding:         0.45rem 1rem;
  font-family:     var(--rl-font-mono);
  font-size:       0.6rem;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           rgba(245,242,236,.4);
  text-decoration: none;
  border:          1px solid rgba(255,255,255,.07);
  background:      var(--rl-near-black);
  transition:      color 0.2s, border-color 0.2s;
  white-space:     nowrap;
}
.lb-ln-pill:hover { color: var(--rl-off-white); border-color: rgba(255,255,255,.2); }

.lb-ln-dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  flex-shrink:   0;
}


/* ----------------------------------------------------------------
   WHY SEQUENCE MATTERS
   frm-two-col reused from framework.css
   ---------------------------------------------------------------- */
.lb-sequence {
  background:    var(--rl-off-white);
  padding:       80px 0;
  border-bottom: 1px solid var(--rl-border);
}

.lb-sequence h2 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.8rem, 3vw, 2.4rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  margin-bottom:  1.25rem;
}
.lb-sequence h2 em { font-style: italic; color: var(--rl-accent); }

.lb-sequence p {
  font-size:     0.97rem;
  color:         #444;
  line-height:   1.8;
  margin-bottom: 1rem;
}

/* Stack diagram — layers stacked L4 top → L1 bottom */
.lb-stack-diagram {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.lb-sd-layer {
  display:     flex;
  align-items: stretch;
}

.lb-sd-bar {
  width:      6px;
  flex-shrink: 0;
}
.lb-sd-bar--l1 { background: var(--rl-l1); }
.lb-sd-bar--l2 { background: var(--rl-l2); }
.lb-sd-bar--l3 { background: var(--rl-l3); }
.lb-sd-bar--l4 { background: var(--rl-l4); }

.lb-sd-content {
  flex:        1;
  padding:     1.25rem 1.5rem;
  background:  var(--rl-warm);
  border:      1px solid var(--rl-border);
  border-left: none;
}

.lb-sd-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom:  0.35rem;
  display:        block;
}
.lb-sd-label--l1 { color: var(--rl-l1); }
.lb-sd-label--l2 { color: var(--rl-l2); }
.lb-sd-label--l3 { color: var(--rl-l3); }
.lb-sd-label--l4 { color: var(--rl-l4); }

.lb-sd-name {
  font-family:   var(--rl-font-display);
  font-size:     1rem;
  font-weight:   700;
  margin-bottom: 0.25rem;
  color:         var(--rl-black);
}

.lb-sd-depends {
  font-size:  0.75rem;
  color:      var(--rl-mid);
  font-style: italic;
}

.lb-sd-foundation {
  text-align:    center;
  font-family:   var(--rl-font-mono);
  font-size:     0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--rl-accent);
  padding:        0.6rem;
  background:     rgba(200,80,42,.05);
  border:         1px solid rgba(200,80,42,.15);
  margin-top:     2px;
}


/* ----------------------------------------------------------------
   LAYER SECTIONS (L1–L4)
   Alternating warm/off-white backgrounds matching the concept.
   ---------------------------------------------------------------- */
.lb-layer-section {
  padding:       var(--rl-section-pad) 0;
  border-bottom: 1px solid var(--rl-border);
}
.lb-layer-section--l1 { background: var(--rl-warm); }
.lb-layer-section--l2 { background: var(--rl-off-white); }
.lb-layer-section--l3 { background: var(--rl-warm); }
.lb-layer-section--l4 { background: var(--rl-off-white); }

/* Section header */
.lb-ls-header { margin-bottom: 4rem; }

.lb-ls-header-top {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             2rem;
  margin-bottom:   2rem;
}

/* Badge row — frm-layer-badge reused from framework.css */
.lb-ls-badge {
  display:     flex;
  align-items: center;
  gap:         0.85rem;
  margin-bottom: 1.25rem;
}

.lb-ls-badge-text {
  font-family:    var(--rl-font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lb-ls-badge-text--l1 { color: var(--rl-l1); }
.lb-ls-badge-text--l2 { color: var(--rl-l2); }
.lb-ls-badge-text--l3 { color: var(--rl-l3); }
.lb-ls-badge-text--l4 { color: var(--rl-l4); }

.lb-ls-header h2 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  margin-bottom:  0.5rem;
}

.lb-ls-subtitle {
  font-size:    1rem;
  color:        var(--rl-mid);
  font-style:   italic;
  margin-bottom: 1.25rem;
  display:      block;
}

.lb-ls-intro {
  font-size:    1rem;
  color:        #333;
  line-height:  1.8;
  max-width:    700px;
  margin-bottom: 1.5rem;
}

/* Price tag — dark block in top-right of header */
.lb-price-tag {
  background: var(--rl-near-black);
  padding:    1.5rem 1.75rem;
  flex-shrink: 0;
  min-width:  220px;
}

.lb-pt-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          rgba(245,242,236,.3);
  display:        block;
  margin-bottom:  0.6rem;
}

.lb-pt-price {
  font-family:   var(--rl-font-display);
  font-size:     2rem;
  font-weight:   800;
  color:         var(--rl-off-white);
  display:       block;
  line-height:   1;
  margin-bottom: 0.2rem;
}

.lb-pt-duration {
  font-family:    var(--rl-font-mono);
  font-size:      0.62rem;
  letter-spacing: 0.1em;
  color:          rgba(245,242,236,.35);
}

/* Body — 2-col */
.lb-ls-body {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   3rem;
}

.lb-ls-col h3 {
  font-family:   var(--rl-font-display);
  font-size:     1.1rem;
  font-weight:   700;
  margin-bottom: 1.25rem;
  color:         var(--rl-black);
}

/* Work / not-included item list */
.lb-ls-items {
  list-style:     none;
  padding:        0;
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
}

.lb-ls-item {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
  font-size:   0.88rem;
  color:       #333;
  line-height: 1.55;
  padding:     0.85rem 1rem;
  border:      1px solid var(--rl-border);
}
/* Items on warm sections get off-white bg, and vice versa */
.lb-layer-section--l1 .lb-ls-item,
.lb-layer-section--l3 .lb-ls-item { background: var(--rl-off-white); }
.lb-layer-section--l2 .lb-ls-item,
.lb-layer-section--l4 .lb-ls-item { background: var(--rl-warm); }

.lb-ls-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  flex-shrink:   0;
  margin-top:    4px;
}
.lb-ls-dot--l1  { background: var(--rl-l1); }
.lb-ls-dot--l2  { background: var(--rl-l2); }
.lb-ls-dot--l3  { background: var(--rl-l3); }
.lb-ls-dot--l4  { background: var(--rl-l4); }
.lb-ls-dot--mid { background: var(--rl-mid); }

/* Stakeholders */
.lb-stakeholders { margin-bottom: 0; }

.lb-stakeholders-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--rl-mid);
  display:        block;
  margin-bottom:  0.85rem;
}

.lb-stakeholders-tags {
  display:  flex;
  flex-wrap: wrap;
  gap:      0.4rem;
}

.lb-stag {
  font-family:    var(--rl-font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        0.3rem 0.75rem;
  background:     rgba(200,80,42,.07);
  border:         1px solid rgba(200,80,42,.2);
  color:          var(--rl-accent);
}

/* Not-included / notes sub-section */
.lb-ls-not-included { margin-top: 2rem; }
.lb-ls-not-included h3 { margin-bottom: 0.85rem; }

/* Outcome grid */
.lb-ls-outcome {
  margin-top:  2.5rem;
  border-top:  1px solid var(--rl-border);
  padding-top: 2.5rem;
}

.lb-ls-outcome-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--rl-mid);
  display:        block;
  margin-bottom:  1rem;
}

.lb-ls-outcome-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

.lb-log {
  padding: 1.1rem;
  border:  1px solid var(--rl-border);
}
/* Flip background like the items */
.lb-layer-section--l1 .lb-log,
.lb-layer-section--l3 .lb-log { background: var(--rl-off-white); }
.lb-layer-section--l2 .lb-log,
.lb-layer-section--l4 .lb-log { background: var(--rl-warm); }

.lb-log-icon {
  font-size:     0.9rem;
  margin-bottom: 0.5rem;
  display:       block;
}

.lb-log-text {
  font-size:   0.8rem;
  color:       #333;
  line-height: 1.5;
}
.lb-log-text strong {
  display:       block;
  font-weight:   600;
  color:         var(--rl-black);
  margin-bottom: 0.2rem;
  font-size:     0.82rem;
}

/* Responsive */
@media (max-width: 1023.98px) {
  .lb-ls-body         { grid-template-columns: 1fr; }
  .lb-ls-outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-ls-header-top   { flex-direction: column; }
}
@media (max-width: 575.98px) {
  .lb-ls-outcome-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   WHAT WE ARE HONEST ABOUT  (dark section)
   ---------------------------------------------------------------- */
.lb-honest {
  background: var(--rl-near-black);
  padding:    80px 0;
}

.lb-honest-inner {
  display:               grid;
  grid-template-columns: 1fr 2fr;
  gap:                   80px;
  align-items:           start;
}

.lb-honest-inner h2 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.8rem, 3vw, 2.4rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  color:          var(--rl-off-white);
  margin-bottom:  1rem;
}
.lb-honest-inner h2 em { font-style: italic; color: var(--rl-accent); }

.lb-honest-inner > div:first-child p {
  font-size:   0.9rem;
  color:       rgba(245,242,236,.45);
  line-height: 1.75;
}

.lb-honest-cards {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.lb-hc {
  background: rgba(255,255,255,.03);
  border:     1px solid rgba(255,255,255,.06);
  padding:    1.5rem;
}

.lb-hc-num {
  font-family:    var(--rl-font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          rgba(200,80,42,.6);
  display:        block;
  margin-bottom:  0.5rem;
}

.lb-hc h3 {
  font-family:   var(--rl-font-display);
  font-size:     1rem;
  font-weight:   700;
  color:         var(--rl-off-white);
  margin-bottom: 0.5rem;
}

.lb-hc p {
  font-size:   0.83rem;
  color:       rgba(245,242,236,.4);
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .lb-honest-inner { grid-template-columns: 1fr; gap: 40px; }
}


/* ----------------------------------------------------------------
   FULL PROGRAMME
   frm-two-col reused from framework.css via lb-fp-grid below
   ---------------------------------------------------------------- */
.lb-full-programme {
  background:    var(--rl-warm);
  padding:       80px 0;
  border-bottom: 1px solid var(--rl-border);
}

/* Custom grid: 1fr / 420px to match concept */
.lb-fp-grid {
  display:               grid;
  grid-template-columns: 1fr 420px;
  gap:                   80px;
  align-items:           start;
}

.lb-full-programme h2 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.8rem, 3vw, 2.4rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  margin-bottom:  1rem;
}
.lb-full-programme h2 em { font-style: italic; color: var(--rl-accent); }

.lb-full-programme p {
  font-size:     0.97rem;
  color:         #444;
  line-height:   1.8;
  margin-bottom: 1.25rem;
}

/* Inclusions list */
.lb-fp-inclusions {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  margin-top:     2rem;
}

.lb-fp-inc {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1rem 1.25rem;
  background:      var(--rl-off-white);
  border:          1px solid var(--rl-border);
  font-size:       0.85rem;
}

.lb-fp-inc-left {
  display:     flex;
  align-items: center;
  gap:         0.85rem;
}

.lb-fp-inc-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  flex-shrink:   0;
}

.lb-fp-inc-name { font-weight: 600; color: var(--rl-black); }

.lb-fp-inc-price {
  font-family:    var(--rl-font-mono);
  font-size:      0.7rem;
  color:          var(--rl-mid);
  letter-spacing: 0.05em;
}

/* Dark pricing card */
.lb-fp-card { background: var(--rl-near-black); }

.lb-fp-card-top {
  padding:       2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.lb-fp-card-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(200,80,42,.8);
  display:        block;
  margin-bottom:  0.75rem;
}

.lb-fp-card-price {
  font-family:   var(--rl-font-display);
  font-size:     2.8rem;
  font-weight:   800;
  color:         var(--rl-off-white);
  line-height:   1;
  display:       block;
  margin-bottom: 0.3rem;
}

.lb-fp-card-note {
  font-size: 0.78rem;
  color:     rgba(245,242,236,.35);
}

.lb-fp-card-rows { padding: 0 2rem; }

.lb-fp-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0.85rem 0;
  border-bottom:   1px solid rgba(255,255,255,.05);
  font-size:       0.83rem;
  gap:             1rem;
}
.lb-fp-row:last-child { border-bottom: none; }

.lb-fp-row-key { color: rgba(245,242,236,.4); }
.lb-fp-row-val { color: var(--rl-off-white); font-weight: 500; text-align: right; }

.lb-fp-card-cta {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* rl-btn-primary is inline-flex — make it full-width in the card */
.lb-fp-btn-block {
  display:    block !important;
  text-align: center;
}

.lb-fp-btn-ghost {
  display:         block;
  background:      transparent;
  border:          1px solid rgba(245,242,236,.12);
  color:           rgba(245,242,236,.5);
  text-align:      center;
  padding:         0.85rem 1.5rem;
  font-size:       0.85rem;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s;
}
.lb-fp-btn-ghost:hover { border-color: rgba(245,242,236,.35); color: var(--rl-off-white); }

.lb-fp-card-savings {
  font-size:   0.72rem;
  color:       rgba(245,242,236,.25);
  text-align:  center;
  font-family: var(--rl-font-mono);
  letter-spacing: 0.05em;
  line-height: 1.5;
}

@media (max-width: 1023.98px) {
  .lb-fp-grid { grid-template-columns: 1fr; }
}