/* M.A.I.C. visual-first landing layer v1
   Presentation only. Canonical state/evidence values remain backend-owned. */
:root{
  --vf-line:var(--maic-vf-line);
  --vf-line-strong:rgba(var(--accent-rgb),.28);
  --vf-ink:var(--maic-vf-high);
  --vf-muted:var(--maic-vf-muted);
  --vf-muted2:var(--maic-vf-dim);
  --vf-max:var(--maic-vf-max-width);
}

body[data-visual-first="v1"] .section{
  padding-top:clamp(72px,8vw,118px);
  padding-bottom:clamp(72px,8vw,118px);
}

body[data-visual-first="v1"] .section-heading{
  max-width:860px;
  margin-bottom:clamp(24px,3.5vw,42px);
}

body[data-visual-first="v1"] .section-heading h2{
  max-width:820px;
}

body[data-visual-first="v1"] .section-heading>p:not(.kicker):not(.v516-brief){
  max-width:720px;
}

.vf-mount{
  width:100%;
  max-width:var(--vf-max);
  margin:26px auto 0;
}

.vf-kicker{
  color:var(--text);
  font:800 10px/1.2 var(--mono);
  letter-spacing:.13em;
  text-transform:uppercase;
}

.vf-provenance{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--vf-line);
  color:var(--vf-muted2);
  font:700 9px/1.4 var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vf-provenance a{
  color:var(--text);
  text-decoration:none;
}

/* Hero: category + current authority, not marketing-card overload */
.vf-hero-command{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  height:100%;
  align-content:start;
  overflow:hidden;
}

.vf-hero-command::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 24.9%,rgba(255,255,255,.025) 25%,transparent 25.1% 74.9%,rgba(255,255,255,.025) 75%,transparent 75.1%);
  opacity:.7;
}

.vf-hero-authority,
.vf-hero-segments{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  position:relative;
  z-index:1;
  padding:clamp(22px,2.6vw,36px);
}

.vf-category-seal{
  display:inline-flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:34px;
  color:var(--vf-muted);
  text-decoration:none;
  font:800 9px/1.3 var(--mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}

.vf-category-seal b{
  color:var(--vf-ink);
  font-weight:900;
}

.vf-category-seal i{
  width:5px;height:5px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 18px rgba(var(--accent-rgb),.75);
}

.vf-authority-word{
  display:block;
  margin:8px 0 10px;
  color:var(--vf-ink);
  font-size:clamp(52px,6vw,86px);
  font-weight:850;
  line-height:.82;
  letter-spacing:-.075em;
}

.vf-authority-meta{
  min-block-size:calc(2.8em + 8px);
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  color:var(--vf-muted);
  font:750 10px/1.4 var(--mono);
  letter-spacing:.07em;
  text-transform:uppercase;
}

.vf-authority-meta .is-confirmed{color:var(--text)}
.vf-authority-meta .is-pending{color:var(--vf-muted)}

.vf-hero-segments{
  align-items:stretch;
  justify-content:center;
  border-top:1px solid var(--vf-line);
}

.vf-segment-list{
  display:grid;
  gap:16px;
  margin-top:20px;
}

.vf-segment{
  display:grid;
  grid-template-columns:90px minmax(0,1fr) 90px;
  align-items:center;
  gap:12px;
}

.vf-segment span,
.vf-segment b{
  font:800 9px/1.2 var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vf-segment span{color:var(--vf-muted2)}
.vf-segment b{color:var(--vf-ink);text-align:right}

.vf-segment-track{
  position:relative;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:var(--maic-vf-fill-hover);
}

.vf-segment-track::after{
  content:"";
  display:block;
  width:var(--vf-fill,0%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,rgba(var(--accent-rgb),.3),var(--accent));
  box-shadow:0 0 18px rgba(var(--accent-rgb),.25);
  transition:width .55s ease;
}

.vf-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}

.vf-link{
  display:inline-flex;
  min-height:42px;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid var(--vf-line);
  border-radius:999px;
  color:var(--vf-ink);
  text-decoration:none;
  font:800 9px/1.2 var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  background:rgba(255,255,255,.02);
}
.vf-link:hover{border-color:var(--vf-line-strong);background:rgba(var(--accent-rgb),.05)}
.vf-link.primary{border-color:var(--vf-line-strong);color:var(--text)}

/* Live state: keep the actual instrument, flatten decorative containers */
body[data-visual-first="v1"].maic-vf-ready #live-route .allocation-bars article{
  grid-template-columns:88px 1fr 96px;
}

/* System graph */

/* Decision space */

/* Replay evidence geometry */

/* Existing replay should feel like one instrument, not a box collection */
body[data-visual-first="v1"].maic-vf-ready #replay .replay-shell{
  border:0;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
body[data-visual-first="v1"].maic-vf-ready #replay .replay-comparison{
  border:0;
  border-radius:0;
  background:transparent;
}
body[data-visual-first="v1"].maic-vf-ready #replay .replay-comparison article{
  border-bottom:1px solid var(--vf-line);
  background:transparent;
}

/* Evidence: headline proof first, audit depth on demand */
.vf-evidence-lens{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  margin:18px 0 24px;
  padding:14px 0;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
}
.vf-evidence-copy{
  margin:4px 0 0;
  color:var(--vf-ink);
  font-size:var(--maic-vf-type-detail);
  line-height:1.45;
}
.vf-evidence-toggle{
  min-height:42px;
  padding:0 15px;
  border:1px solid var(--vf-line-strong);
  border-radius:999px;
  color:var(--text);
  background:transparent;
  cursor:pointer;
  font:800 9px/1.2 var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.vf-evidence-toggle:hover{background:rgba(var(--accent-rgb),.05)}

body[data-visual-first="v1"].maic-vf-ready #evidence .featured-proof-grid article{
  border:0;
  border-radius:0;
  background:rgba(4,9,15,.97);
  box-shadow:none;
}

body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .model-board,
body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .walk-forward-module,
body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .false-positive,
body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .maic-forward-evidence-block,
body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .survivability-curve-module,
body[data-visual-first="v1"].maic-vf-ready #evidence:not(.vf-evidence-expanded) .maic-performance-links{
  display:none;
}

/* Topology: map first */
.vf-topology-rail{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  margin:16px 0 24px;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
  background:var(--vf-line);
}
.vf-topology-rail div{
  min-height:80px;
  padding:16px;
  background:rgba(4,9,15,.96);
}
.vf-topology-rail span{
  display:block;
  color:var(--vf-muted2);
  font:800 8px/1.3 var(--mono);
  letter-spacing:.09em;
  text-transform:uppercase;
}
.vf-topology-rail strong{
  display:block;
  margin-top:8px;
  color:var(--vf-ink);
  font-size:var(--maic-vf-type-small-title);
}
body[data-visual-first="v1"].maic-vf-ready #restricted .topology-map{
  border:0;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
  border-radius:0;
  box-shadow:none;
  background:transparent;
}

/* Lineage: concise reference discipline rail */

/* Intelligence library: search-intent rail first */
.vf-intent-rail{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 24px;
}
.vf-intent-rail a{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  padding:0 13px;
  border-bottom:1px solid var(--vf-line);
  color:var(--vf-muted);
  text-decoration:none;
  font:750 9px/1.2 var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.vf-intent-rail a:hover{border-color:var(--accent);color:var(--text)}



/* Trust tail: one flat trust rail, four canonical questions first. */
body[data-visual-first="v1"].maic-vf-ready #trust-faq .trust-icons{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
body[data-visual-first="v1"].maic-vf-ready #trust-faq .trust-icons article{
  min-height:112px;
  padding:18px;
  border:0;
  border-radius:0;
  background:rgba(4,9,15,.96);
}
body[data-visual-first="v1"].maic-vf-ready #trust-faq .faq-accordion.surface{
  border:0;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
  border-radius:0;
  box-shadow:none;
  background:transparent;
}

/* FAQ: four canonical questions first; remainder stays accessible */
.vf-faq-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.vf-faq-actions button,
.vf-faq-actions a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  border:1px solid var(--vf-line);
  border-radius:999px;
  color:var(--vf-muted);
  background:transparent;
  text-decoration:none;
  cursor:pointer;
  font:800 9px/1.2 var(--mono);
  letter-spacing:.07em;
  text-transform:uppercase;
}
.vf-faq-actions button:hover,
.vf-faq-actions a:hover{border-color:var(--vf-line-strong);color:var(--text)}

/* Global card de-emphasis: use borders for hierarchy, not every idea as a box */
body[data-visual-first="v1"].maic-vf-ready #logic .operation-card,
body[data-visual-first="v1"].maic-vf-ready #capability .capability-card,
body[data-visual-first="v1"].maic-vf-ready #lineage .lineage-shell,
body[data-visual-first="v1"].maic-vf-ready #intelligence-library .library-grid.surface{
  box-shadow:none;
}

body[data-visual-first="v1"].maic-vf-ready #custodian-boundary{
  padding-top:54px;
  padding-bottom:54px;
  border-top:1px solid var(--vf-line);
  border-bottom:1px solid var(--vf-line);
}

body[data-visual-first="v1"].maic-vf-ready #access .access-grid{
  gap:16px;
}

/* Motion only communicates state */

/* Responsive */
@media(max-width:980px){
  body[data-visual-first="v1"].maic-vf-ready #trust-faq .trust-icons{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  body[data-visual-first="v1"] .section{padding-top:62px;padding-bottom:62px}
  .vf-hero-authority,.vf-hero-segments{padding:24px 18px}
  .vf-authority-word{font-size:clamp(54px,20vw,82px)}
  .vf-segment{grid-template-columns:76px 1fr 82px;gap:8px}
  .vf-topology-rail{grid-template-columns:1fr}
  body[data-visual-first="v1"].maic-vf-ready #trust-faq .trust-icons{grid-template-columns:1fr}
}

@media(max-width:480px){
  .vf-hero-command{margin-left:-2px;margin-right:-2px}
  .vf-category-seal{margin-bottom:24px}
  .vf-segment{grid-template-columns:70px 1fr}
  .vf-segment b{grid-column:2;text-align:left}
}

@media(prefers-reduced-motion:reduce){
  .vf-segment-track::after{transition:none!important}
}

/* M.A.I.C. subtractive human-first refinement v2 */
.vf-source-only{display:none!important}
.hero-origin-line a{color:var(--text);text-decoration:none}.hero-origin-line a:hover{text-decoration:underline}
.vf-boundary-copy{max-width:760px;margin:14px auto 0;color:var(--vf-muted);font-size:var(--maic-vf-type-small);line-height:1.7}
.vf-library-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.vf-faq-core{display:grid;grid-template-columns:1fr;gap:10px;margin-top:28px}
.vf-faq-core details{padding:20px 24px}
.vf-faq-core summary{cursor:pointer;font:600 var(--maic-vf-type-reading)/1.4 var(--sans)}
.vf-faq-core p{margin-top:16px;color:var(--maic-vf-muted);font-size:var(--maic-vf-type-body);line-height:1.65;max-width:85ch}
body[data-visual-first="v1"].maic-vf-ready #trust-faq .vf-faq-actions{margin-top:18px}
body[data-visual-first="v1"].maic-vf-ready #lineage .vf-mount-lineage,body[data-visual-first="v1"].maic-vf-ready #logic .vf-mount-system-graph,body[data-visual-first="v1"].maic-vf-ready #capability .vf-mount-decision-space{margin-top:30px}


/* Capital-flow gateway, doctrine matrix and access-boundary restoration */
.vf-access-boundary{display:grid;gap:5px;margin:14px 0 18px;padding-top:13px;border-top:1px solid var(--vf-line)}
.vf-access-boundary b{margin-top:5px;color:var(--text);font:800 8px/1.2 var(--mono);letter-spacing:.09em}
.vf-access-boundary span{color:var(--vf-muted);font-size:var(--maic-vf-type-label);line-height:1.45}
.vf-access-boundary span::before{content:"↳ ";color:var(--vf-muted2)}
.vf-mandate-note{margin-top:18px;padding:16px 18px;border-top:1px solid var(--vf-line);border-bottom:1px solid var(--vf-line)}
.vf-mandate-note strong{font-size:var(--maic-vf-type-small)}.vf-mandate-note p{margin:6px 0 0;color:var(--vf-muted);font-size:var(--maic-vf-type-micro);line-height:1.6}

/* V2.1 upstream capital-flow context + restored historical selection funnel */
.lineage-doctrine-doc{display:inline-flex;margin:18px 0 0;color:rgba(var(--lineage-mode-rgb),.95);font:800 9px/1.3 var(--mono);letter-spacing:.07em;text-transform:uppercase;text-decoration:none}.lineage-doctrine-doc:hover{text-decoration:underline}

/* MAIC mobile visual-first evidence geometry: three owned items per row
   (pseudo node, explicit label, explicit OBSERVE state); no clipped column. */



/* PX127 / Source-boundary notes attached to existing specialist instruments. */
.maic-inline-proof{display:grid;grid-template-columns:minmax(120px,.52fr) minmax(0,2fr) auto;align-items:start;gap:clamp(12px,1.8vw,24px);margin:clamp(10px,1.7vw,20px) 0 clamp(22px,2.8vw,32px);padding:clamp(14px,1.6vw,18px) 0;border-top:1px solid var(--maic-vf-line);border-bottom:1px solid var(--maic-vf-line);min-width:0}
.maic-inline-proof-label{font:600 var(--maic-vf-type-label)/1.5 var(--maic-vf-instrument);letter-spacing:.04em;color:var(--maic-vf-muted);text-transform:uppercase}
.maic-inline-proof-copy{min-width:0}
.maic-inline-proof-copy strong{display:block;color:var(--maic-vf-high);font:650 var(--maic-vf-type-reading)/1.45 var(--maic-vf-reading)}
.maic-inline-proof-copy p{margin:5px 0 0;color:var(--maic-vf-muted);font:400 var(--maic-vf-type-body)/1.6 var(--maic-vf-reading);max-width:85ch}
.maic-inline-proof .text-link{display:inline-flex;align-items:center;justify-content:flex-start;min-height:44px;max-width:240px;font:600 var(--maic-vf-type-label)/1.5 var(--maic-vf-reading);white-space:normal;color:var(--maic-vf-ink);text-decoration:underline;text-underline-offset:4px}
.maic-inline-proof .text-link:focus-visible{outline:2px solid var(--maic-vf-high);outline-offset:3px}
@media(max-width:760px){.maic-inline-proof{grid-template-columns:1fr;gap:8px}.maic-inline-proof .text-link{max-width:none;margin-top:3px}}

.maic-inline-proof[data-integrity-proof="selection"]{grid-template-columns:minmax(120px,.52fr) minmax(0,2fr)}
