/* =========================================================
   Performance Lab — LIFE SUMMIT EDITION skin
   Loaded AFTER styles.css. Re-skins the gold palette to the
   Performance Lab black + red identity, and adds the new
   components (measure manifesto, BMS Index meta-card,
   6-module cycle).
   ========================================================= */

/* ---- PALETTE OVERRIDE ---- */
:root {
  /* cooler, deeper blacks for the red edition */
  --ink-1:   #0B0B0E;
  --ink-2:   #141418;
  --ink-3:   #1C1C22;
  --paper:   #F5F3F0;
  --paper-2: #ECE9E4;

  /* the gold tokens are re-pointed to Performance Lab red.
     Every .grad, button, glow and accent inherits this. */
  --gold-1:  #FF3B47;
  --gold-2:  #E11D2A;
  --gold-3:  #B0101D;
  --gold-grad: linear-gradient(135deg, #FF4651 0%, #E11D2A 55%, #B0101D 100%);

  /* success/contrast accent stays cool so it reads against red */
  --vital:   #38B2A0;
}

/* primary buttons: red glow instead of gold */
.btn--primary {
  box-shadow: 0 14px 40px -14px rgba(225, 29, 42, .65), 0 0 0 1px rgba(255,255,255,.12) inset;
  color: #fff;
}
.btn--primary:hover {
  box-shadow: 0 18px 48px -14px rgba(225, 29, 42, .85), 0 0 0 1px rgba(255,255,255,.20) inset;
}

/* hero glows → red + cool steel */
.hero__glow--gold {
  background: radial-gradient(circle, rgba(225,29,42,.40), transparent 60%);
}
.hero__glow--cool {
  background: radial-gradient(circle, rgba(80,90,120,.22), transparent 60%);
}

/* logo drop-shadow tint */
.logo--brand { filter: drop-shadow(0 0 30px rgba(225,29,42,.18)); }

/* ribbon dot glow */
.ribbon__dot { background: var(--gold-1); box-shadow: 0 0 10px var(--gold-1); }

/* ---- MEASURE MANIFESTO (new) ---- */
.measure {
  background: var(--ink-1);
  color: var(--paper);
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.measure::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(225,29,42,.16), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(80,90,120,.10), transparent 60%);
  pointer-events: none;
}
.measure__eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-1); font-weight: 600; margin-bottom: 1.6rem;
}
.measure__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 18ch;
  margin: 0 auto 1.4rem;
}
.measure__statement em { font-style: italic; font-weight: 300; }
.measure__statement .grad {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.measure__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(245,243,240,.74);
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.measure__en {
  font-family: var(--serif); font-style: italic;
  color: rgba(245,243,240,.5);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  margin-top: .4rem;
}

/* ---- BMS INDEX META-CARD (new) ---- */
.metacard-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: left;
}
@media (max-width: 820px) { .metacard-wrap { grid-template-columns: 1fr; } }

.metacard {
  position: relative;
  background: linear-gradient(160deg, #17171C, #0E0E12);
  border: 1px solid rgba(245,243,240,.10);
  border-radius: 24px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(225,29,42,.08) inset;
  max-width: 380px;
  width: 100%;
  justify-self: center;
  overflow: hidden;
}
.metacard::after {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 70%; height: 90%;
  background: radial-gradient(circle, rgba(225,29,42,.18), transparent 70%);
  pointer-events: none;
}
.metacard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.6rem;
}
.metacard__brand { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,243,240,.55); }
.metacard__brand strong { color: var(--gold-1); font-weight: 600; }
.metacard__chip { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px; border: 1px solid rgba(56,178,160,.4); color: var(--vital); }
.metacard__score {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem;
}
.metacard__ring {
  --val: 72;
  width: 92px; height: 92px; border-radius: 999px; flex-shrink: 0;
  background:
    radial-gradient(closest-side, #14141A 78%, transparent 79% 100%),
    conic-gradient(var(--gold-2) calc(var(--val) * 1%), rgba(245,243,240,.12) 0);
  display: grid; place-items: center;
  position: relative;
}
.metacard__ring b {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 500;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metacard__score-label { font-size: .8rem; color: rgba(245,243,240,.7); line-height: 1.45; }
.metacard__score-label strong { color: var(--paper); display:block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin-bottom: .15rem; }
.metacard__bars { display: flex; flex-direction: column; gap: .8rem; }
.metacard__bar-label { display: flex; justify-content: space-between; font-size: .76rem; color: rgba(245,243,240,.65); margin-bottom: .3rem; }
.metacard__bar { height: 6px; border-radius: 999px; background: rgba(245,243,240,.10); overflow: hidden; }
.metacard__bar span { display: block; height: 100%; border-radius: 999px; background: var(--gold-grad); }
.metacard__foot { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(245,243,240,.08); font-size: .72rem; color: rgba(245,243,240,.5); letter-spacing: .04em; }

.metacard-copy h2 { color: var(--paper); }
.metacard-copy .lede { color: rgba(245,243,240,.74); }
.metacard-copy ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.metacard-copy li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; color: rgba(245,243,240,.82); }
.metacard-copy li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-1); margin-top: 1px; }

/* ---- 8-MODULE CYCLE (override protokoll steps to 8 + loop note) ---- */
.protokoll__steps { grid-template-columns: repeat(4, 1fr); }
.step:nth-child(4n) { border-right: 0; }
.step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
@media (max-width: 980px) {
  .protokoll__steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .step:nth-child(2n) { border-right: 0 !important; }
  .step:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 620px) {
  .protokoll__steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .step:last-child { border-bottom: 0 !important; }
}
.cycle-note {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin: 2.4rem auto 0; max-width: 600px;
  font-size: .85rem; letter-spacing: .04em;
  color: rgba(20,22,28,.6); text-align: center;
}
.cycle-note__loop {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--gold-3); color: var(--gold-3);
}
.cycle-note__loop svg { width: 15px; height: 15px; }

/* on the dark pillars, the index number + field use red now (inherited via tokens) */

/* sleep module uses an inline SVG icon instead of a brand logo */
.pillar__logo--icon { color: var(--gold-1); height: 42px; display: flex; align-items: center; }
.pillar__logo--icon svg { height: 34px; width: auto; }

/* ---- BMS DEEP DIVE on dark `.measure` section (summit only) ---- */
.measure .dim {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.measure .dim:hover {
  border-color: rgba(225,29,42,.4);
  box-shadow: 0 28px 60px -32px rgba(0,0,0,.7);
}
.measure .dim__icon { background: var(--paper); color: var(--ink-1); }
.measure .dim__name { color: var(--paper); }
.measure .dim__short { color: var(--gold-1); border-bottom-color: rgba(255,255,255,.10); }
.measure .dim__copy { color: rgba(245,243,240,.72); }
.measure .dim-formula { color: var(--paper); }
.measure .dim-formula strong { color: var(--paper); }
/* mindset section on summit: stays on paper-2 (light) — cells dark target inverts correctly */

/* ---- NO-EXCUSES BADGE accent ---- */
.no-excuses {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(225,29,42,.4); background: rgba(225,29,42,.08);
  color: var(--gold-1); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.no-excuses::before { content:""; width:7px; height:7px; border-radius:999px; background: var(--gold-1); box-shadow: 0 0 10px var(--gold-1); }
