/* ================================================================
   READYLAYER — framework.css
   Page-specific styles for /framework only.
   Load order: after main.css, services.css
   All classes prefixed frm- to avoid collision with rl- and svc- namespaces.

   Reused from main.css (no new CSS needed):
     rl-eyebrow, rl-btn-primary, rl-btn-ghost, rl-footer-*,
     rl-header, reveal — all CSS variables incl. --rl-l1 through --rl-l4

   Reused from services.css (no new CSS needed):
     svc-hero (dark bg + glow), svc-page-cta / svc-page-cta-inner /
     svc-cta-row (bottom CTA), svc-inline-link (body links),
     svc-aside (aside column wrapper in layer grids)

   NOTE: frm-two-col duplicates abt-two-col structurally.
   Both should be promoted to main.css as a shared utility once
   this pattern is confirmed stable across 3+ pages.
   ================================================================ */


/* ----------------------------------------------------------------
   HERO INNER  (wide single-col; overrides the svc-hero-grid layout)
   ---------------------------------------------------------------- */
.frm-hero-inner {
  max-width: 780px;
}

.frm-hero-h1 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight:    800;
  color:          var(--rl-off-white);
  line-height:    1.12;
  letter-spacing: -0.02em;
  margin-bottom:  1.5rem;
  animation:      rl-fadeUp 0.8s ease forwards;
}
.frm-hero-h1 em { font-style: italic; color: var(--rl-accent); }

.frm-hero-sub {
  font-size:     1.1rem;
  color:         rgba(245,242,236,.6);
  line-height:   1.75;
  max-width:     620px;
  font-weight:   300;
  margin-bottom: 2.5rem;
  animation:     rl-fadeUp 0.8s 0.15s ease forwards;
}

/* Layer quick-nav pills */
.frm-layer-pills {
  display:   flex;
  gap:       0.5rem;
  flex-wrap: wrap;
  animation: rl-fadeUp 0.8s 0.3s ease forwards;
}

.frm-layer-pill {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  padding:         0.4rem 1rem;
  border-radius:   2px;
  font-family:     var(--rl-font-mono);
  font-size:       0.65rem;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  text-decoration: none;
  transition:      opacity 0.2s;
}
.frm-layer-pill:hover { opacity: 0.8; }

.frm-layer-pill--l1 { background: rgba(200,80,42,.15); border: 1px solid rgba(200,80,42,.3); color: #e8855c; }
.frm-layer-pill--l2 { background: rgba(42,92,139,.15);  border: 1px solid rgba(42,92,139,.3);  color: #6aacde; }
.frm-layer-pill--l3 { background: rgba(42,107,74,.15);  border: 1px solid rgba(42,107,74,.3);  color: #5aae80; }
.frm-layer-pill--l4 { background: rgba(107,63,139,.15); border: 1px solid rgba(107,63,139,.3); color: #b07ed4; }


/* ----------------------------------------------------------------
   SHARED TWO-COLUMN LAYOUT
   NOTE: Structurally identical to abt-two-col. Promotion candidate.
   ---------------------------------------------------------------- */
.frm-two-col {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           start;
}
.frm-two-col--center { align-items: center; }

@media (max-width: 991.98px) {
  .frm-two-col { grid-template-columns: 1fr; gap: 40px; }
}


/* ----------------------------------------------------------------
   SHARED BODY COPY UTILITIES (light — used on dark sections)
   ---------------------------------------------------------------- */
.frm-h2--light {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.8rem, 3vw, 2.5rem);
  font-weight:    800;
  color:          var(--rl-off-white);
  letter-spacing: -0.02em;
  margin-bottom:  1.25rem;
  line-height:    1.15;
}

.frm-body--light {
  font-size:     0.95rem;
  color:         rgba(245,242,236,.55);
  line-height:   1.8;
  margin-bottom: 1.1rem;
  display:       block;
}

/* Standard body used in frm-body wrapper and frm-layer-body */
.frm-body p,
.frm-layer-body p {
  font-size:     0.95rem;
  color:         #444;
  line-height:   1.8;
  margin-bottom: 1rem;
}
.frm-body p:last-child,
.frm-layer-body p:last-child { margin-bottom: 0; }

.frm-layer-body h3 {
  font-family:   var(--rl-font-display);
  font-size:     1.1rem;
  font-weight:   700;
  color:         var(--rl-black);
  margin-bottom: 0.65rem;
  margin-top:    1.5rem;
}
.frm-layer-body h3:first-of-type { margin-top: 0; }


/* ----------------------------------------------------------------
   WHAT IS AI READINESS  (definition section)
   ---------------------------------------------------------------- */
.frm-definition {
  background:    var(--rl-off-white);
  padding:       var(--rl-section-pad) 0;
  border-bottom: 1px solid var(--rl-border);
}

.frm-definition .frm-two-col h2 {
  font-size:      clamp(1.8rem, 3vw, 2.5rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  margin-bottom:  1.25rem;
}
.frm-definition .frm-two-col h2 em { font-style: italic; color: var(--rl-accent); }

/* Mini stat strip (light bg — different from dark rl-stat-card) */
.frm-stat-strip {
  margin-top:            3rem;
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
}

.frm-stat-item {
  background: var(--rl-warm);
  border:     1px solid var(--rl-border);
  padding:    1.5rem;
}

.frm-stat-n {
  font-family:   var(--rl-font-display);
  font-size:     2rem;
  font-weight:   800;
  color:         var(--rl-black);
  line-height:   1;
  margin-bottom: 0.35rem;
}
.frm-stat-n span { color: var(--rl-accent); }

.frm-stat-l {
  font-size:   0.8rem;
  color:       var(--rl-mid);
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .frm-stat-strip { grid-template-columns: 1fr 1fr; }
}


/* ----------------------------------------------------------------
   FRAMEWORK OVERVIEW (dark layer stack)
   ---------------------------------------------------------------- */
.frm-overview {
  background: var(--rl-near-black);
  padding:    var(--rl-section-pad) 0;
  position:   relative;
  overflow:   hidden;
}
.frm-overview::before {
  content:    '';
  position:   absolute;
  bottom:     -100px;
  left:       -100px;
  width:      600px;
  height:     600px;
  background: radial-gradient(ellipse, rgba(200,80,42,.06) 0%, transparent 65%);
  pointer-events: none;
}

.frm-overview-header {
  max-width:     640px;
  margin-bottom: 4rem;
  position:      relative;
  z-index:       1;
}
.frm-overview-header h2 {
  font-size:      clamp(1.8rem, 3vw, 2.5rem);
  font-weight:    800;
  color:          var(--rl-off-white);
  letter-spacing: -0.02em;
  margin-bottom:  1rem;
}
.frm-overview-header p {
  font-size:   0.97rem;
  color:       rgba(245,242,236,.55);
  line-height: 1.75;
}

/* Layer bar stack */
.frm-layer-stack {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  position:       relative;
  z-index:        1;
}

.frm-layer-bar {
  display:               grid;
  grid-template-columns: 180px 1fr auto;
  align-items:           center;
  gap:                   1.5rem;
  padding:               1.4rem 1.75rem;
  border-left:           4px solid transparent;
  background:            rgba(255,255,255,.03);
  text-decoration:       none;
  transition:            background 0.2s;
}
.frm-layer-bar:hover { background: rgba(255,255,255,.055); }

.frm-layer-bar--l1 { border-left-color: var(--rl-l1); }
.frm-layer-bar--l2 { border-left-color: var(--rl-l2); }
.frm-layer-bar--l3 { border-left-color: var(--rl-l3); }
.frm-layer-bar--l4 { border-left-color: var(--rl-l4); }

.frm-lb-label {
  display:        flex;
  flex-direction: column;
  gap:            0.25rem;
}
.frm-lb-num {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(245,242,236,.3);
}
.frm-lb-name {
  font-family:  var(--rl-font-display);
  font-size:    1rem;
  font-weight:  700;
  color:        var(--rl-off-white);
}
.frm-lb-desc {
  font-size:   0.83rem;
  color:       rgba(245,242,236,.45);
  line-height: 1.6;
}
.frm-lb-anchor {
  font-family:    var(--rl-font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(245,242,236,.2);
  white-space:    nowrap;
  transition:     color 0.2s;
}
.frm-layer-bar:hover .frm-lb-anchor { color: var(--rl-accent); }

/* Dependency callout */
.frm-dep-note {
  display:     flex;
  align-items: flex-start;
  gap:         1rem;
  margin-top:  2rem;
  padding:     1.25rem 1.5rem;
  background:  rgba(200,80,42,.08);
  border:      1px solid rgba(200,80,42,.15);
  position:    relative;
  z-index:     1;
}
.frm-dep-icon {
  font-size:  1rem;
  flex-shrink: 0;
  margin-top: 2px;
  color:      rgba(245,242,236,.4);
}
.frm-dep-text {
  font-size:   0.83rem;
  color:       rgba(245,242,236,.5);
  line-height: 1.65;
}
.frm-dep-text strong { color: rgba(245,242,236,.8); }

@media (max-width: 767.98px) {
  .frm-layer-bar { grid-template-columns: 1fr; gap: 0.5rem; }
  .frm-lb-anchor { display: none; }
}


/* ----------------------------------------------------------------
   LAYER DETAIL SECTIONS (L1–L4)
   ---------------------------------------------------------------- */
.frm-layer-section {
  padding:       var(--rl-section-pad) 0;
  border-bottom: 1px solid var(--rl-border);
  background:    var(--rl-off-white);
}
.frm-layer-section--alt { background: var(--rl-warm); }

/* Layer intro — badge + label */
.frm-layer-intro {
  display:       flex;
  align-items:   center;
  gap:           1rem;
  margin-bottom: 2rem;
}

.frm-layer-badge {
  width:           44px;
  height:          44px;
  border-radius:   3px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--rl-font-mono);
  font-size:       0.7rem;
  font-weight:     700;
  color:           #fff;
  flex-shrink:     0;
}
.frm-layer-badge--l1 { background: var(--rl-l1); }
.frm-layer-badge--l2 { background: var(--rl-l2); }
.frm-layer-badge--l3 { background: var(--rl-l3); }
.frm-layer-badge--l4 { background: var(--rl-l4); }

.frm-layer-badge-text {
  display:        flex;
  flex-direction: column;
  gap:            0.15rem;
}
.frm-layer-badge-num {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.frm-layer-badge-num--l1 { color: var(--rl-l1); }
.frm-layer-badge-num--l2 { color: var(--rl-l2); }
.frm-layer-badge-num--l3 { color: var(--rl-l3); }
.frm-layer-badge-num--l4 { color: var(--rl-l4); }

.frm-layer-badge-name {
  font-family: var(--rl-font-display);
  font-size:   1.35rem;
  font-weight: 700;
  color:       var(--rl-black);
}

/* Readiness gap list */
.frm-signal-list {
  list-style:     none;
  padding:        0;
  display:        flex;
  flex-direction: column;
  gap:            0.55rem;
  margin-bottom:  1rem;
}
.frm-signal-list li {
  display:     flex;
  align-items: flex-start;
  gap:         0.85rem;
  font-size:   0.85rem;
  color:       #444;
  line-height: 1.55;
}

.frm-sl-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  flex-shrink:   0;
  margin-top:    5px;
}
.frm-sl-dot--l1 { background: var(--rl-l1); }
.frm-sl-dot--l2 { background: var(--rl-l2); }
.frm-sl-dot--l3 { background: var(--rl-l3); }
.frm-sl-dot--l4 { background: var(--rl-l4); }


/* ----------------------------------------------------------------
   ASIDE: LAYER DIAGNOSTIC CARD
   ---------------------------------------------------------------- */
.frm-layer-card {
  background: var(--rl-off-white);
  border:     1px solid var(--rl-border);
}
.frm-layer-card--alt { background: var(--rl-warm); }

.frm-lc-header {
  padding:       1.5rem 1.75rem;
  border-bottom: 1px solid var(--rl-border);
  background:    var(--rl-off-white); /* always light regardless of card bg */
}
/* When the card sits on an alt (warm) section, the header gets a bg tweak */
.frm-lc-header--on-alt { background: var(--rl-off-white); }

.frm-lc-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.4rem;
}
.frm-lc-title {
  font-family:  var(--rl-font-display);
  font-size:    1.05rem;
  font-weight:  700;
  color:        var(--rl-black);
}

.frm-lc-body { padding: 1.75rem; }

.frm-lc-q {
  font-size:     0.82rem;
  font-weight:   600;
  color:         var(--rl-black);
  margin-bottom: 0.35rem;
  display:       block;
}
.frm-lc-a {
  font-size:     0.8rem;
  color:         var(--rl-mid);
  line-height:   1.6;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rl-border);
  display:       block;
}
.frm-lc-a:last-child {
  margin-bottom:  0;
  padding-bottom: 0;
  border-bottom:  none;
}


/* ----------------------------------------------------------------
   ASIDE: READINESS INDICATORS BOX
   ---------------------------------------------------------------- */
.frm-signals-box {
  background: var(--rl-off-white);
  border:     1px solid var(--rl-border);
  padding:    1.75rem;
  margin-top: 2px;
}
.frm-signals-box--alt { background: var(--rl-warm); }

.frm-sb-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;
}

.frm-signal-pair {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   1px;
  margin-bottom:         1px;
}
.frm-signal-pair:last-child { margin-bottom: 0; }

.frm-sp-item {
  padding:     0.85rem 1rem;
  font-size:   0.78rem;
  line-height: 1.5;
}
.frm-sp-item--ready {
  background: rgba(42,107,74,.07);
  border:     1px solid rgba(42,107,74,.15);
  color:      #2a5a3a;
}
.frm-sp-item--gap {
  background: rgba(184,92,92,.07);
  border:     1px solid rgba(184,92,92,.15);
  color:      #8a3a3a;
}
.frm-sp-head {
  font-weight:    600;
  display:        block;
  margin-bottom:  0.2rem;
  font-size:      0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 575.98px) {
  .frm-signal-pair { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   WHY SEQUENCE MATTERS  (dark section)
   ---------------------------------------------------------------- */
.frm-sequence {
  background: var(--rl-near-black);
  padding:    var(--rl-section-pad) 0;
}

.frm-seq-steps {
  display:        flex;
  flex-direction: column;
  gap:            1px;
}

.frm-seq-step {
  display:               grid;
  grid-template-columns: 44px 1fr;
  gap:                   1rem;
  align-items:           start;
  background:            rgba(255,255,255,.03);
  padding:               1.4rem 1.5rem;
  border-top:            1px solid rgba(255,255,255,.05);
}
.frm-seq-step:first-child { border-top: none; }

.frm-seq-num {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--rl-font-mono);
  font-size:       0.65rem;
  font-weight:     700;
  flex-shrink:     0;
}
.frm-seq-num--l1 { background: rgba(200,80,42,.2);  color: var(--rl-l1); border: 1px solid rgba(200,80,42,.3); }
.frm-seq-num--l2 { background: rgba(42,92,139,.2);  color: #6aacde;      border: 1px solid rgba(42,92,139,.3); }
.frm-seq-num--l3 { background: rgba(42,107,74,.2);  color: #5aae80;      border: 1px solid rgba(42,107,74,.3); }
.frm-seq-num--l4 { background: rgba(107,63,139,.2); color: #b07ed4;      border: 1px solid rgba(107,63,139,.3); }

.frm-seq-content strong {
  display:       block;
  font-size:     0.92rem;
  font-weight:   600;
  color:         var(--rl-off-white);
  margin-bottom: 0.25rem;
}
.frm-seq-content span {
  font-size:   0.82rem;
  color:       rgba(245,242,236,.4);
  line-height: 1.6;
}


/* ----------------------------------------------------------------
   HOW WE ASSESS  (warm section)
   ---------------------------------------------------------------- */
.frm-assess {
  background: var(--rl-warm);
  padding:    var(--rl-section-pad) 0;
  border-top: 1px solid var(--rl-border);
}

.frm-assess .frm-two-col h2 {
  font-size:      clamp(1.8rem, 3vw, 2.5rem);
  font-weight:    800;
  letter-spacing: -0.02em;
  margin-bottom:  1.25rem;
}
.frm-assess .frm-two-col h2 em { font-style: italic; color: var(--rl-accent); }

.frm-assess .frm-two-col p {
  font-size:     0.95rem;
  color:         #444;
  line-height:   1.8;
  margin-bottom: 1.1rem;
}

.frm-assess-steps {
  display:        flex;
  flex-direction: column;
  gap:            1px;
}

.frm-assess-step {
  display:     flex;
  align-items: flex-start;
  gap:         1.25rem;
  background:  var(--rl-off-white);
  padding:     1.4rem 1.5rem;
  border:      1px solid var(--rl-border);
}

.frm-as-num {
  font-family:  var(--rl-font-mono);
  font-size:    0.65rem;
  color:        var(--rl-accent);
  flex-shrink:  0;
  margin-top:   3px;
}

.frm-as-body strong {
  display:       block;
  font-size:     0.9rem;
  font-weight:   600;
  color:         var(--rl-black);
  margin-bottom: 0.2rem;
}
.frm-as-body span {
  font-size:   0.82rem;
  color:       var(--rl-mid);
  line-height: 1.6;
}