/* =========================================================================
   Beneficial · Landing v2 — additions for the 5-act architecture
   Builds on styles/base.css (v17 design system). New components only.
   ========================================================================= */

/* ---- Dark surface tokens (Act 3 frontier + terminal) ---------------- */
:root {
  --ink-0:   #151515;   /* deepest */
  --ink-1:   #171717;   /* terminal bg (brief) */
  --ink-2:   #1F1F1F;   /* raised panel on dark */
  --ink-bd:  rgba(255,255,255,0.10);
  --ink-bd2: rgba(255,255,255,0.16);
  /* peec-style dark elevation: raised surface, bright top edge, deep soft drop */
  --shadow-card-dark:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 2px 4px rgba(0,0,0,0.5),
    0 12px 28px rgba(0,0,0,0.6),
    0 32px 70px rgba(0,0,0,0.7);
  --on-ink:        #EDEDED;  --on-ink-mid:    #A3A3A3;   /* brief: neutral mono */
  --on-ink-low:    #6B6B6B;
  --on-ink-dim:    #525252;   /* brief: timestamps */
  --term-verdict:  #F59E0B;   /* brief: terminal verdict orange w700 */
  --hero-accent:   #10B981;   /* brief: hero SCALE badge */
}

/* ===========================================================
   ACT 1 · HERO — verdict card (cinematic formation)
   =========================================================== */
.vcard {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card), var(--shadow-scale);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.vcard__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hero-accent), transparent);
  opacity: 0;
  pointer-events: none;
}
.vcard.is-forming .vcard__scan { animation: vscan 1.4s var(--ease) 0.1s 2; }
@keyframes vscan {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(360px); }
}
.vcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.vcard__id { display: flex; flex-direction: column; gap: 6px; }
.vcard__project {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
}
.vcard__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}
.vcard__ref {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* evaluation trace — types in during formation */
.vcard__trace {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 92px;
}
.vcard__trace li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--text-mid);
  opacity: 0;
  transform: translateY(3px);
}
.vcard.is-forming .vcard__trace li { animation: vtrace 0.4s var(--ease-out) forwards; }
.vcard__trace li:nth-child(1) { animation-delay: 0.25s; }
.vcard__trace li:nth-child(2) { animation-delay: 0.55s; }
.vcard__trace li:nth-child(3) { animation-delay: 0.85s; }
.vcard__trace li:nth-child(4) { animation-delay: 1.15s; }
@keyframes vtrace { to { opacity: 1; transform: none; } }
.vcard__trace .ok { color: var(--scale); }
.vcard__trace .check { color: var(--text); }

.vcard__score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.vcard__score-wrap { display: flex; align-items: baseline; gap: 8px; }
.vcard__score {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 72px;
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--scale);
}
.vcard__of {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-low);
}
.vcard__verdict {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--hero-accent);
  opacity: 0;
  transform: scale(0.94);
}
.vcard.is-forming .vcard__verdict { animation: vstamp 0.5s var(--ease-out) 1.45s forwards; }
@keyframes vstamp {
  0%   { opacity: 0; transform: scale(0.9); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.vcard.is-settled .vcard__trace li,
.vcard.is-settled .vcard__verdict { opacity: 1; transform: none; }

.vcard__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  overflow: hidden;
}
.vcard__proof div {
  background: var(--bg-1);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vcard__proof .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}
.vcard__proof .v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.vcard__proof .v.pos { color: var(--scale); }

.vcard__replay {
  position: absolute;
  right: 16px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.vcard:hover .vcard__replay { opacity: 1; }
.vcard__replay:hover { color: var(--text-mid); }
.vcard__disclaimer {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-low);
  opacity: 0.7;
  align-self: flex-end;
  margin-top: 2px;
}

/* hero scene mentale (4 rhythmic lines) */
.scene {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--stroke-2);
}
.scene__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-mid);
  letter-spacing: -0.006em;
}
.scene__line:last-child { color: var(--text); }
.scene__pivot {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
  letter-spacing: -0.008em;
}
.scene__pivot strong { font-weight: 500; }

/* ===========================================================
   ACT 1 · PROBLEM
   =========================================================== */
.problem { padding: 112px 0; }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.problem__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 24px;
  max-width: 40ch;
}
.problem__list { list-style: none; margin: 0; padding: 0; }
.problem__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--stroke);
}
.problem__item:first-child { border-top: 1px solid var(--stroke); }
.problem__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
}
.problem__sees { font-size: 15px; color: var(--text); letter-spacing: -0.008em; }
.problem__concl {
  margin-top: 36px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 30ch;
}
.problem__concl .muted { color: var(--text-mid); }

/* ===========================================================
   ACT 1 · 11 EXPERTS
   =========================================================== */
.experts { padding: 112px 0; background: var(--bg-1); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.experts__head { max-width: 64ch; margin-bottom: 14px; }
.experts__roles {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 70ch;
  margin: 20px 0 8px;
}
.experts__roles strong { color: var(--text); font-weight: 500; }
.experts__pivot {
  font-size: 16px;
  color: var(--text-mid);
  margin: 0 0 36px;
}
.experts__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.experts__q {
  background: var(--bg-1);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.008em;
  transition: background var(--dur) var(--ease);
}
.experts__q:hover { background: var(--bg-3); }
.experts__q--wide { grid-column: 1 / -1; }
.experts__check {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  color: var(--scale);
}
.experts__q .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-low);
}
.experts__concl {
  margin-top: 40px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 34ch;
}
.experts__concl .muted { color: var(--text-mid); }
.experts__concl .accent { display: block; margin-top: 6px; color: var(--text-mid); }

/* ===========================================================
   ACT 2 · SCOPE tabs — risk-vector double box (extends .scope)
   =========================================================== */
.scope__vector {
  border: 1px solid rgba(10, 10, 10, 0.05);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  background: var(--bg-1);
  overflow: hidden;
}
.scope__vector-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scope__vector-row:last-child { border-bottom: 0; background: var(--bg-3); }
.scope__vector-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}
.scope__vector-v {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.scope__vector-v.terra { color: var(--stop-ink); }
.scope__vector-v.amber { color: var(--fix); }
.scope__vector-v.red   { color: #C81E1E; }
.scope__vector-d { font-size: 13px; color: var(--text-mid); line-height: 1.45; }
.scope__vector-std {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.scope__vector-art {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.04em;
}
.scope__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.scope__pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-1);
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ===========================================================
   ACT 3 · DARK FRONTIER WRAPPER
   =========================================================== */
.act3 {
  background: var(--ink-0);
  color: var(--on-ink);
  position: relative;
  --text: var(--on-ink);
  --text-2: var(--on-ink);
  --text-mid: var(--on-ink-mid);
  --text-low: var(--on-ink-low);
  --text-dim: var(--on-ink-dim);
  --stroke: var(--ink-bd);
  --stroke-2: var(--ink-bd2);
  --bg-1: var(--ink-1);
  --bg-3: var(--ink-2);
}
.act3__frontier {
  height: 1px;
  background: var(--stroke);
}
.act3 .eyebrow {
  background: rgba(255,255,255,0.04);
  border-color: var(--ink-bd);
  color: var(--on-ink-mid);
  box-shadow: none;
}
.act3 .eyebrow .marker { background: var(--stop); }

/* comité — STOP/FIX/SCALE presentation + switcher */
.comite { padding: 120px 0 32px; }
.comite__head { max-width: 60ch; margin-bottom: 16px; }
.comite__lead {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--on-ink);
  max-width: 30ch;
  margin: 0 0 44px;
}
.comite__lead .muted { color: var(--on-ink-mid); }
.comite__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ink-bd);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
}
.comite__seg {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--on-ink-mid);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.comite__seg[aria-pressed="true"] { color: var(--ink-0); background: var(--on-ink); }
.comite__seg[data-v="stop"][aria-pressed="true"]  { background: var(--stop);  color: #fff; }
.comite__seg[data-v="fix"][aria-pressed="true"]   { background: var(--fix-pure); color: var(--ink-0); }
.comite__seg[data-v="scale"][aria-pressed="true"] { background: var(--scale-pure); color: var(--ink-0); }

.comite__stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.comite__panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.16);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #2A2A2A 0%, #202020 42%, #1B1B1B 100%);
  box-shadow: var(--shadow-card-dark);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 360px;
  position: relative;
}
.comite__panel::before {
  content: "";
  position: absolute;
  inset: -55px -45px -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 8%, rgba(200,212,255,0.26), rgba(195,208,255,0.09) 45%, transparent 74%);
  filter: blur(34px);
  pointer-events: none;
}
.comite__panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.comite__verdict {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.comite__verdict.stop  { color: var(--stop); }
.comite__verdict.fix   { color: var(--fix-pure); }
.comite__verdict.scale { color: var(--scale-pure); }
.comite__defn { font-size: 16px; color: var(--on-ink-mid); line-height: 1.5; max-width: 30ch; }
.comite__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-low);
  border: 1px solid var(--ink-bd);
  border-radius: var(--r);
  padding: 8px 12px;
}
.comite__rows { display: flex; flex-direction: column; gap: 1px; background: var(--ink-bd); border: 1px solid var(--ink-bd); border-radius: var(--r); overflow: hidden; }
.comite__row { background: var(--ink-1); padding: 13px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.comite__row .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-low); }
.comite__row .v { font-family: var(--mono); font-size: 13px; color: var(--on-ink); font-feature-settings: "tnum"; }

.comite__tagline {
  margin-top: 60px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}
.comite__tagline .muted { color: var(--on-ink-mid); }

/* terminal logs */
.terminal-block { padding: 0 0 110px; }
.terminal {
  background: var(--ink-1);
  border: 1px solid var(--ink-bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  max-width: 720px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-bd);
  background: rgba(255,255,255,0.02);
}
.terminal__dots { display: flex; gap: 7px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #333; display: block; }
.terminal__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-ink-low);
  text-transform: uppercase;
}
.terminal__body {
  padding: 22px 24px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
}
.terminal__line { display: flex; gap: 16px; opacity: 0; }
.terminal__line.in { opacity: 1; }
.terminal__t { color: var(--on-ink-dim); white-space: nowrap; }
.terminal__m { color: var(--on-ink-mid); }
.terminal__m.warn { color: var(--term-verdict); }
.terminal__sep { color: var(--on-ink-dim); letter-spacing: 0.04em; opacity: 0; }
.terminal__sep.in { opacity: 1; }
.terminal__verdict {
  color: var(--term-verdict);
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0;
}
.terminal__verdict.in { opacity: 1; }
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--term-verdict);
  margin-left: 4px;
  vertical-align: -2px;
  animation: tcursor 1s steps(2) infinite;
}
@keyframes tcursor { 50% { opacity: 0; } }

/* piliers 2x2 */
.piliers { padding: 0 0 110px; }
.piliers__lead {
  font-size: 17px;
  color: var(--on-ink-mid);
  max-width: 48ch;
  line-height: 1.6;
  margin: 0 0 40px;
}
.piliers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-bd);
  border: 1px solid var(--ink-bd);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pilier {
  background: var(--ink-1);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pilier__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-ink-low);
}
.pilier__h {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-ink);
}
.pilier__b { font-size: 14.5px; line-height: 1.6; color: var(--on-ink-mid); }
.pilier--wide { grid-column: 1 / -1; }
.pilier--wide .pilier__b { max-width: 60ch; }

.ip-line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-ink-low);
  padding-top: 36px;
  border-top: 1px solid var(--ink-bd);
}

/* ===========================================================
   ACT 5 · CLOSING phrase + form
   =========================================================== */
.closing { padding: 130px 0 110px; }
.closing__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
}
.closing__h {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 18px 0 0;
  max-width: 16ch;
}
.closing__h .muted { color: #9B9B9B; display: block; }
.closing__r { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.closing__body { font-size: 15px; line-height: 1.6; color: var(--text-mid); max-width: 42ch; }
.closing__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}
.closing__tags span { display: inline-flex; align-items: center; gap: 7px; }
.closing__tags span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--stop);
}

/* form extensions */
.beta__field textarea {
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
  transition: border-color var(--dur) var(--ease);
}
.beta__field textarea:focus { outline: none; border-color: var(--text); }
.beta__count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: right;
}
.beta__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 10px;
  line-height: 1.45;
  color: #9b9b9b;
  margin-top: -8px;
}
.beta__consent input { margin-top: 1px; width: 12px; height: 12px; accent-color: var(--text); flex: 0 0 auto; }
.beta__consent a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--stroke-2); }
.beta__consent a:hover { color: var(--text); }

/* ===========================================================
   Tweaks-driven variants
   =========================================================== */
/* hero composition */
html[data-hero="stacked"] .hero__grid { grid-template-columns: 1fr; gap: 44px; }
html[data-hero="stacked"] .hero__r { max-width: 460px; }
html[data-hero="card-left"] .hero__grid { direction: rtl; }
html[data-hero="card-left"] .hero__grid > * { direction: ltr; }

/* card chrome */
html[data-chrome="flat"] .vcard { box-shadow: 0 0 0 1px var(--stroke); }
html[data-chrome="tinted"] .vcard {
  background: linear-gradient(180deg, rgba(16,185,129,0.05), var(--bg-1) 120px);
}

/* dark frontier off — keep Act 3 light */
html[data-frontier="light"] .act3 {
  background: var(--bg-1);
  color: var(--text);
  --text: #0A0A0A; --text-2: #262626; --text-mid: #525252;
  --text-low: #737373; --text-dim: #A3A3A3;
  --stroke: #E5E5E5; --stroke-2: #D4D4D4;
  --bg-1: #FFFFFF; --bg-3: #F5F5F2;
}
html[data-frontier="light"] .act3 .terminal { box-shadow: var(--shadow-card); }
html[data-frontier="light"] .act3 .eyebrow { background: var(--bg-1); border-color: #E5E5E5; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
/* terminal stays dark even in light frontier (it's a machine surface) */
html[data-frontier="light"] .act3 .terminal {
  --on-ink: #EDEDED; --on-ink-mid: #A3A3A3; --on-ink-low: #6B6B6B; --on-ink-dim: #525252;
}

/* ===========================================================
   FOOTER v2 — dark, Pancake-inspired, product-grade
   =========================================================== */
.footer2 {
  background: #0E0E0E;
  color: #EDEDED;
  padding: 60px 0 28px;
}
.footer2__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer2__brand { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer2__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.footer2__logo { height: 30px; width: auto; display: block; }
.footer2__baseline {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #6B6B6B;
  line-height: 1;
  white-space: nowrap;
}
.footer2__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding-top: 2px;
}
.footer2__nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #EDEDED;
  transition: color var(--dur) var(--ease);
}
.footer2__nav a:hover { color: #fff; }
.footer2__nav-cta { color: #EDEDED; }
.footer2__social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.footer2__dot { width: 5px; height: 5px; border-radius: 50%; background: #3A3A3A; }
.footer2__social a { color: #8A8A8A; transition: color var(--dur) var(--ease); display: block; }
.footer2__social a:hover { color: #fff; }
.footer2__social svg { width: 18px; height: 18px; display: block; }
.footer2__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 52px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #6B6B6B;
}
.footer2__bottom-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.footer2__legal { display: inline-flex; gap: 18px; }
.footer2__legal a { color: #6B6B6B; transition: color var(--dur) var(--ease); }
.footer2__legal a:hover { color: #EDEDED; }

@media (max-width: 820px) {
  .footer2 { padding: 44px 0 24px; }
  .footer2__top { flex-direction: column; gap: 28px; }
  .footer2__right { align-items: flex-start; }
  .footer2__nav { align-items: flex-start; }
  .footer2__social { justify-content: flex-start; }
  .footer2__bottom { flex-direction: column; gap: 16px; margin-top: 36px; }
  .footer2__bottom-right { align-items: flex-start; text-align: left; }
}

/* ===========================================================
   Section title reveal — peec-inspired masked rise
   =========================================================== */
.title-rise { overflow: hidden; }
.title-rise > .title-rise__i { display: block; transform: translateY(0); will-change: transform; }
.title-rise.is-pre > .title-rise__i { transform: translateY(115%); }
.title-rise.is-in:not(.is-done) > .title-rise__i {
  animation: titleRise 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.title-rise.is-done { overflow: visible; }
@keyframes titleRise {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}
/* second-line / muted clauses get a touch more delay for a layered feel */
.title-rise.is-in:not(.is-done) > .title-rise__i .muted {
  display: block;
  animation: clauseRise 950ms cubic-bezier(0.16, 1, 0.3, 1) 110ms both;
}
.title-rise.is-in:not(.is-done) > .title-rise__i .accent {
  display: inline-block;
  animation: clauseRise 950ms cubic-bezier(0.16, 1, 0.3, 1) 110ms both;
}
@keyframes clauseRise {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .title-rise.is-pre > .title-rise__i { transform: none; }
  .title-rise > .title-rise__i .muted,
  .title-rise > .title-rise__i .accent { opacity: 1; transform: none; }
}

/* keep eyebrow pills on one line */
.eyebrow { white-space: nowrap; align-self: flex-start; }

/* pipeline bar fill (animation while filling; resting state = final width so it
   stays visible even if the animation never advances in an unfocused context) */
.layer__bar::after { width: var(--w, var(--target, 0%)); transition: none; }
.layer__bar.is-fill:not(.is-done)::after { animation: bargrow 900ms var(--ease) both; }
@keyframes bargrow { from { width: 0; } to { width: var(--w, 100%); } }

/* verdict rhythm */
html[data-rhythm="discret"] .vcard__scan { display: none; }
html[data-rhythm="discret"] .vcard.is-forming .vcard__trace li { animation-delay: 0.12s; }
html[data-rhythm="discret"] .vcard.is-forming .vcard__verdict { animation-delay: 0.6s; }

@media (max-width: 980px) {
  .problem__grid { grid-template-columns: 1fr; gap: 36px; }
  .experts__grid { grid-template-columns: 1fr; }
  .comite__stage { grid-template-columns: 1fr; }
  .closing__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .vcard__score { font-size: 60px; }
  .scene__line { font-size: 14px; }
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq { padding: 112px 0; text-align: center; }
.faq .eyebrow { margin-bottom: 12px; }
.faq .h2 { margin-bottom: 48px; }
.faq__list { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }
.faq__item { border-bottom: 1px solid var(--stroke); }
.faq__item:first-child { border-top: 1px solid var(--stroke); }
.faq__q {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-low);
  flex-shrink: 0;
  margin-left: 24px;
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after {
  content: "−";
}
.faq__a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  padding: 0 0 24px;
  max-width: 680px;
}
